in 1578-1579.
Şahanşahname (TSKM B.200, 1592) Özdemiroğlu Osman Pasha, who consolidated the Ottoman rule in
Shirvan as a result of the
Battle of Torches, left Demirkapı (where he was stationed for five years) with 3,000 soldiers under his command on 21 October 1583 and defeated the Russian troops in the Battle of Sunch River on 28-30 October. He reached Caffa via the north of the Caucasus, following the road from the
Kuban River, to Taman and to Kerch. In response to Sultan Murad III's decree for the execution of Mehmed II Giray, Özdemiroğlu Osman Pasha, despite the potential risks of executing the Crimean Khan during the ongoing Iran War, implemented his order. Özdemiroğlu Osman Pasha took action, granting
Alp Giray, Mehmed II Giray's brother, a warrant and appointing him to the khanate. Mehmed II Giray, however, did not recognize this appointment and marched with his army of approximately 40,000 horsemen to the Caffa Castle (held by the Ottoman Empire), where Özdemiroğlu Osman Pasha was stationed. Five days later his son Safa Giray, who commanded the vanguard, arrived in front of Caffa, set up his tent, and took over the command of the siege. He also forcibly took with him the cannons and artillery that the Ottomans had sent to Crimea to reinforce Özdemiroğlu Osman Pasha while he was fighting in Shirvan, and bombarded Caffa. Özdemiroğlu Osman Pasha, on the other hand, secretly sent men to the brothers of Mehmed Giray II, trying to win them over or at least keep them away from him. Simultaneously, he requested reinforcements from Istanbul. Mehmed Giray, however, intensified the siege, destroying the waterways carrying water to Caffa and constructing fortifications for the soldiers to position themselves in. He also burned the vineyards and orchards in the Caffa plain, aiming to cause grain shortages for the Ottoman garrison. At the Ottoman Palace, a council convened, and it was decided that the Ottoman Navy, along with reinforcements, would be dispatched to Caffa within ten days under the command of
Kılıç Ali Pasha. Mehmed II Giray's brother,
İslam Giray (who had previously resided in the dervish lodge in Konya, concealing his desire to rule under the garb of a Mevlevi dervish), was appointed Khan of Crimea by the Ottomans court, and brought before Murad III, where he was presented with a sword, a horse, and a red banner with a gold inscription. On the night of April 24-25, 1584, the Ottoman Navy, under the command of Kılıç Ali Pasha and accompanied by İslam Giray, departed from Istanbul. The fleet, consisting of 25 galleys and a few barges, included approximately 3,000 soldiers, artillerymen, and
Kapıkulu soldiers. The siege of Caffa continued for approximately 40 days, with cannon and rifle fire. The Ottoman Captain of Azov arrived off the coast of Caffa with a dazzling display of skill and cannon fire on the Tatar soldiers loyal to Mehmed II Giray. The Ottoman Navy then appeared off the coast of Caffa. The Tatar soldiers began to disperse under the cannon and rifle fire. Subsequently, as the navy landed troops at Caffa, İslam Giray landed and was met by Özdemiroğlu Osman Pasha. Özdemiroğlu Osman Pasha mounted the new Khan on a horse, marched ahead of him, and, taking his hand, let him ascend the throne. He also declared Alp Giray his lieutenant, a Kalga. With the proclamation of the new Khan, the soldiers of Mehmed Giray, who was now deposed, began to submit in groups to the command of Islam Giray II. Mehmed Giray, however, fled Crimea one night, hoping to seek refuge with the Nogay Horde located in the region of the Itil River. In the morning, the situation was understood, and Alp Giray was sent in pursuit of Mehmed Giray. Alp Giray, who caught up with Mehmed Giray, executed him with a lasso. ==Second expedition==