John VII Palaiologos or Palaeologus (; 1370 – 22 September 1408) was Byzantine emperor for five months in 1390, from 14 April to 17 September. A handful of sources suggest that John VII sometimes used the name Andronikos (Ἀνδρόνικος), possibly to honour the memory of his father, Andronikos IV Palaiologos, though he reigned under his birth name. Andronikos IV was the firstborn son of Emperor John V Palaiologos (), and had thus been the heir to the throne. After a failed rebellion in 1373, Andronikos IV was imprisoned and partially blinded, the same punishment possibly being carried out on John VII, then only three years old. Andronikos IV escaped in 1376 and successfully took Constantinople, ruling as emperor until 1379. John VII served as co-emperor during this time, possibly being appointed in 1377. Though deposed in 1379 by his brother Manuel II Palaiologos and their father John V, Andronikos IV never renounced his claims. To prevent further conflict, it was agreed in 1381 that Andronikos IV was to succeed John V, making John VII second-in-line to the throne. Upon Andronikos IV's death in 1385, John VII inherited his claims. Despite the previous agreement, Manuel was seen by John V as the favoured successor. John VII rebelled against John V and successfully seized Constantinople in 1390. After just five months, Manuel succeeded in deposing his nephew with the help of the Ottomans and the Knights Hospitaller. Upon John V's death in 1391, Manuel succeeded him as emperor. Still possessing a powerful network of allies, John VII never surrendered his claim to be the legitimate emperor, and the tense relationship between him and his uncle brought the empire close to civil war several times. Though they were only honoured to a limited extent by Manuel, several agreements in regards to status and the line of succession were made between the two in order to avoid conflict, certifying that John VII remained co-emperor and was to succeed Manuel upon his death. In 1394, the Ottoman sultan Bayezid I besieged Constantinople. Manuel left the city in 1399 to travel around Western Europe in search for military aid, and entrusted John VII with serving as regent in Constantinople, overseeing its defense. Despite allegations of conspiring with the Ottomans, John VII held the city loyally for the entire duration of Manuel's three and a half years-long journey, refusing to surrender it to Bayezid. The threat to