Succession dispute
At the death of Mehmed the Conqueror, on 3 May 1481, Bayezid was the governor of Sivas, Tokat and Amasya, and Cem ruled the provinces of Karaman and Konya. With no designated heir after Mehmed, conflict over succession to the throne erupted between Cem and Bayezid.
Contrary to Islamic law, which prohibits any unnecessary delay in burial, Mehmed II's body was transported to Constantinople, where it lay for three days. His grand vizier Karamanlı Mehmet Pasha – believing himself to be fulfilling the wishes of the recently deceased Sultan – attempted to arrange a situation whereby the younger son Cem, whose governing seat at Konya was closer than his brother Bayezid's seat at Amasya, would arrive in Constantinople prior to his older sibling and be able to claim the throne.
However, Bayezid had already established a political network of influential pashas (two of whom were his sons-in-law), the janissaries, and those opposed to the policies of Mehmed II and the grand vizier. In spite of Karamanlı Mehmet Pasha's attempts at secrecy, the Sultan's death and the grand vizier's plan were discovered by the Janissary corps, who supported Bayezid over Cem and had been kept out of the capital after the Sultan's death. As a result, the Janissary corps rebelled, entering the capital, and lynched the grand vizier.
After the death of Karamanlı Mehmet Pasha, there was widespread rioting among the janissaries in Constantinople as there was neither a sultan nor a grand vizier to control the situation. Understanding the danger of the situation, former grand vizier Ishak Pasha took the initiative of beseeching Bayezid to arrive with all due haste. In the meantime, Ishak Pasha took the cautionary measure of proclaiming Bayezid's 11-year-old son, Şehzade (prince) Korkut, as regent until the arrival of his father.
Prince Bayezid arrived at Constantinople on 21 May 1481, and was declared Sultan Bayezid II. Only six days later, Cem captured the city of Inegöl with an army of 4,000. Sultan Bayezid sent his army under the command of vizier Ayas Pasha to kill his brother. On 28 May Cem had defeated Bayezid's army and declared himself Sultan of Anatolia, establishing his capital at Bursa. He proposed to divide the empire between him and his brother, leaving Bayezid the European side. Bayezid furiously rejected the proposal, declared that "between rulers there is no kinship," and marched on to Bursa. The decisive battle between the two contenders to the Ottoman throne took place on 19 June 1481, near the town of Yenişehir. Cem lost and fled with his family to the Mamluk Cairo.