1628–29 Third exile and death
From the Dnieper Shahin began a correspondence with the Poles. He asked for 12000 Cossacks to reconquer Crimea. In return he promised that Crimean raids on Polish territory would stop. The Poles gave him much support, but kept it secret, fearing an open break with Turkey. They planned to claim that the Cossacks were acting on their own. The Cossacks were happy since recent experience made Crimea look like an easy target. About this time Mehmed appeared in the Cossack camp. He had slipped out of the mountains, crossed Crimea undetected and reached the steppe.
First campaign: In early November 1628 a Rada was held. Mehmed and Shahin promised each Cossack 10 zlotys for the campaign. If successful, they promised not to ask for Polish tribute, not to attack Polish territory and to liberate any Polish or Ukrainian slaves in Crimea. An army of 6000 Cossacks and 8000 Crimeans set out. There was trouble from the start. The Cossacks did not like a winter campaign. Shahin promised each man a sheepskin coat. Many Cossacks did not like the new Hetman, Hryhoriy Chorny. After crossing the Dnieper, Shahin asked them to hurry but they would not. Around 15 November they approached Or-Kapi, but found that Janibek, his brother Devlet and Khan Temir had gotten there a few hours before. (Or Qapi was the fort that guarded Perekop.) North of Or-Kapi was a large herd of Nogai cattle. Against Shahin's advice, the Cossacks decided to steal the cattle first. With the cattle driven to the rear they moved up to within cannon-shot of the fort and then stopped. Janibek thought they were preparing for battle but in fact they were quarrelling. The Cossacks decided to forget about Crimea and drive their valuable loot back to Zaporozhe. Shahin could not stop them. Khan Temir chased them as far as the Dnieper but accomplished nothing.
Second campaign: Shahin planned a new campaign in spring when the drift ice cleared from the Dnieper. Mehmed went east to bring troops from the Lesser Nogai Horde. Many Cossacks gathered, hoping for loot. By April, Janibek, Devlet and Khan Temir were guarding Or-Kapi. Hoping to get these troops away from Or-Kapi, the Cossacks sent 500 to 700 men to raid Crimea. They landed on the western coast, went through the forests and captured the ancient fort of Mangup-Kale which was weakly defended and used by the khan as a treasury. The local people drove them out. They were forced to throw away much of their loot, which enriched the local villagers.
On 18 May 1629 a rada was held at Zaporozhe. Each Cossack was promised 10 zlotys and a horse. After crossing the Dnieper the army found that there was little water. In the first battle they drove Janibek's men back to Or-Kapi at a cost of up to 1000 Cossacks. Janibek was worried because he was outnumbered, but scouts reported that there were rows of carts with barrels supplying the enemy. Khan Temir sent troops to destroy the water carts and now the allies were without water. On 30 May Khan Temir attacked. The battle was inconclusive, but toward the end of the day thirst began to take effect and many of the Cossacks wanted to go home. Mehmed now decided that he had lost. Not only that, but having twice lost, he could expect to spend the rest of his life as an unsupported exile. He slipped through the lines and told Khan Temir's men that he would surrender in exchange for his life. He returned to camp to extricate his Crimeans from the Cossacks. As they saddled up the Cossacks realized what was happening and tried to stop them. Khan Temir exploited the situation by attacking. Mehmed told the Cossacks that the approaching force were allies that he had called in, so the Zaporozhians opened their lines. The Budjaks broke in and in the melee Mehmed was killed, pierced by a Cossack pike.
The Cossacks fought their way back to the Dnieper, where Khan Temir abandoned the chase. They had lost one man in four. One hundred of Mehmed's men reached Zaporozhe and were released. Janibek lost about 6000. The Cossack hetman was beheaded and his head set up at Kaffa. Shahin Giray escaped with a few men. Mehmed's body was brought back to Crimea and buried alongside his father and grandfather.