Reign
In 1442 the Ottoman Sultan Murad II sent out a fleet to plunder the shores and to attempt to capture the city. This expedition did not seriously affect Trebizond itself, but attacked Trebizond's dependencies in the Crimea and was partly destroyed by a storm on its return journey. The Ottomans did not make another attack on the Empire of Trebizond until the reign of the next Sultan, Mehmed II. In February 1451 the Byzantine diplomat George Sphrantzes arrived in Trebizond seeking a bride for his emperor, Constantine XI Palaiologos. This incident is notable for the anecdote it relates about John, who gleefully related to Sphrantzes the news of the death of Sultan Murad II, and that Mehmed II's youth meant that now his empire could last longer and be blessed. Sphrantzes, however, was taken aback and explained to him that Mehmed's youth and seeming friendship were only ploys, and that under John's brother-in-law John VIII the empire had been deeply in debt, but now his new emperor was trying to change that.
His conversation with Sphrantzes should have warned John IV of the new peril which had come forth. After the Fall of Constantinople to Mehmed II in 1453, Trebizond and the Morea were left as the last remnants of the Byzantine imperial tradition. Mehmed II immediately summoned John to pay tribute in Constantinople and imposed heavy tolls on Trapezuntine and Venetian shipping through the straits. John apparently failed to cooperate, and in 1456 the Sultan dispatched his governor of Amasya Hizir Bey to attack Trebizond by both land and sea. According to Chalkokondyles, Hizir raided the countryside, even penetrating into the marketplace of Trebizond, capturing altogether about two thousand people. The city was deserted due to plague and likely to fall; John made his submission and agreed to pay an annual tribute of 2,000 gold pieces in return for the captives Hizir had taken. John sent his brother David to ratify the treaty before Mehmed II himself, which he did in 1458, but the tribute was raised to 3,000 gold pieces.
Aware of the Ottoman advance against the remaining Byzantine possessions in the Morea, John IV attempted to bolster his position by resorting to an old family tradition; the same year David delivered the tribute to Mehmed, John married his daughter Theodora to Uzun Hasan of the Ak Koyunlu. He also pursued Western support through effecting a union with the Roman Catholic Church. As early as 1434 he had responded to the letters of Pope Eugenius IV, in marked contrast to earlier emperors of Trebizond, who had ignored papal missives. The Metropolitan of Trebizond joined the Byzantine clergy at the Council of Basel-Ferrara-Florence (1438-1439).
However, these approaches to the Papacy were not marked by harmonious relations with the most important Western power concerned with Trebizond, the Republic of Genoa. Although John owed his throne to a Genoese crew, he repeatedly failed to reimburse the Genoese for debts owed to them in 1431, and in 1441 refused to provide reparations for a Genoese ship ordered seized and looted six years earlier. Further diplomatic initiatives by Genoa failed in 1443, and in 1447 the Genoese of Caffa advanced on Trebizond with their fleet, threatening to set up an embargo. The disputes were never fully settled and seriously injured commerce in the Black Sea.
John's hostile attitude towards Genoa was explained by one contemporary, the Spanish traveller Pero Tafur, as a fear of a potential Byzantine-Genoese alliance that could place his brother Alexander on the throne of Trebizond. Alexander had fled Trebizond for the Byzantine court in 1429 and had eventually married Maria Gattilusio, the daughter of the Genoese lord of Lesbos. The apprehensiveness towards Genoa was contrasted by friendlier relations with Venice, although the Venetians never recovered their former influence in the Black Sea.
At some point in his reign, John was faced with an attack by the ruler of Ardabil, Shaykh Junayd, who marched upon Trebziond: proposed dates range from the 1430s (E. Janssens) through the 1440s (von Hammer, Finlay, and Miller) to 1456 (Shukurov) or 1456-58 (Anthony Bryer). John assembled his land and naval forces, then assisted by his pansebastos sailed forth to meet the Shaikh. The two armies met at Kapanion. John had planned to attack Junayd from both land and sea; however, a strong wind prevented the sailors from landing and the Sheikh's men successfully counteracted, killing the pansebastos and scattering the army. John escaped by means of his fleet, and made it back to Trebizond. Shaykh Junayd soon arrived before the walls of Trebizond, but after three days he found the walls impregnable and marched his army south to ravage the district of Mesochaldia instead.