The Grand Vizier tried to arrange things so that Cem could arrive at his father's funeral before Bayezid and claim the throne at Constantinople. Bayezid, however, already had several important pashas and the Janissaries in his corner. The Janissaries entered the palace, lynched the Grand Vizier, and Bayezid was urged to reach Constantinople as soon as possible.
Cem fled west with an army loyal to him, declaring himself Sultan of Anatolia and proposing that the empire be split; Bayezid could have the western half. Bayezid disagreed, and sent his army after Cem. A battle ensued in which Cem's side lost, and Cem fled to Cairo.
While in Cairo, he received a letter from Bayezid, offering him 1,000,000 akçes (a silver coin that was the standard unit of Ottoman currency) to give up his claim. Instead, Cem tried to conquer the city of Konya in Turkey, but failed. He then fled to Rhodes and asked for the protection of the Knights of St. John, also known as the Hospitallers.
Cem's offer to them was to create a perpetual peace between the Ottoman Empire and Christianity if they would help him overthrow Bayezid. The grand master of the Knights, Pierre d'Aubusson, knew a war with Bayezid could be disastrous, so when he had a message from Bayezid making a counter-offer, he accepted it.
The counter-offer was simple: Bayezid would make an annual payment in gold to the Knights if they would take and keep Cem captive. He was sent to France under the saintly King Louis IX (who did not like having a Muslim in his lands), and kept for a year in the Duchy of Savoy, and then five years at Pierre d'Aubusson's birthplace, Limousin. (The illustration shows the tower built specially to hold him in comfort.) After Charles VIII came to the throne, Bayezid asks that Cem be transferred back to Rhodes. His value as a hostage meant several leaders wanted to "host" him, but ultimately Pope Innocent VIII won out.
In March 1489, Cem was transported to Rome and the custody of Pope Innocent VIII. Whenever word came that Bayezid was about to launch an offensive against Christians, Innocent would send a message to Bayezid, threatening to release Cem from captivity and giving the Ottomans an alternative sultan around whom they could form an insurrection.
Bayezid ultimately sent Innocent 120,000 crowns, a relic of the Holy Lance (stored in Constantinople), and an annual fee of 45,000 ducats for Cem's "room and board." Bayezid sent spies to ensure that Cem was kept under lock and key, and even tried to assassinate him.
...and then Innocent wanted a Crusade against the Ottomans. I'll continue that story—and Cem's end—tomorrow.