[citation needed] He previously suppressed a revolt of the Greeks of Maina ( southern Peloponnese ) in collaboration with the Ottoman governor of the region Arslan Pasha; he returned to Istanbul in November 1614.
Upon his return to Istanbul on November 18, 1615, he resisted the intrigues of the drago man Ottoman in Vienna, Gratiani, in favor of the Habsburgs and against the interests of Venetians, Dutch and French.
Spain's requests for a truce were rejected by Khalil (spring 1620); on 27 June 1620 he marched towards the archipelago and attacked the Spaniards in Manfredonia (August) and remained there until October; in 1620 the captain pasha hanged the rebel governor of Tripoli Safar Dayf (day of Sulayman Sfer) in Libya.
In 1621 Khalil went to the Black Sea to support the campaign of Osman II and with a fleet of 40 galleys repelled the attack of the Cossacks returning to base on November 21, 1621.
At the beginning of 1623 he supported the peace policy with Poland until he was revoked by the new Grand Vizier Mere Hüseyin Pasha, appointed for the second time on February 5, 1623, who considered him his rival, and sent him into exile in Malkara in Thrace.
[citation needed] Abaza Mehmed Pasha rebelled against Erzerum with the Sipahi to avenge the assassination of Osman II, against the rival corps of the Janissaries accused of having killed him.
[citation needed] Finally, on 1 or 2 December 1626 he was appointed Grand Vizier for the second time with the order to obtain the submission of Abaza Mehmed Pasha, still in revolt in Anatolia, and to conclude a treaty with Persia .
The Persians occupied Akhiskha and Khalil, without artillery and with the cold season approaching, lifted the siege of Erzurum in November, spending the winter in Tokat.