Halil Pasha (also known as Bostancı Halil Pasha) was an Ottoman statesman who served as the governor of Ottoman Egypt from 1631 to 1633. He was known for his "gentle, impartial, and prosperous administration" which was in large contrast to the "rapacious" administration of his predecessor, Koca Musa Pasha. In Shawwal 1041 AH (May 1632 CE), while governor, he sent an expeditionary force to the Hejaz to retake Mecca from Yemeni tribesmen under Al-Mu'ayyad Muhammad.
Halil Pasha assumed office by arriving in Egypt in October 1631.
On 17 March 1632, he received intelligence that Arab armies had been on their way from Yemen to Ottoman-held Mecca with intentions to conquer it, and that they had indeed successfully conquered it and sacked it, killing the Sharif of Mecca, among others. When Halil Pasha told this news to his troops in Cairo, one emir, Kasım Bey, volunteered to lead an expedition to Mecca to take the city back from the Yemenis. Halil Pasha agreed, further assigning him assistants and organizing the troop officers and ranks for the war. He made emir Ridwan Bey al-Zulfiqar the head of the land-based troops to Mecca and the amir al-hajj ("leader of the hajj caravan"), making him responsible for the food and water of the pilgrims' animals en route to Mecca.
As the Ottoman army of Kasım Bey approached that of the Yemenis in Wadi Fatimah valley, a scout for the Yemenis, Kör Mahmud, scoped out the Ottoman army from behind a mountain. Seeing that it was too numerous to overcome, the Yemeni army retreated to Wadi Abbas valley and hid in a fort named Turbet. Meanwhile, Kasım Bey's Ottoman army entered Mecca, finding only 100 enemy troops who had not fled in time. After summarily executing them, the Ottoman army performed the ceremonies of Hajj, and then set out in search of the Yemeni army. In the same fashion, the Ottoman troops sailing to Jeddah found it deserted of enemy troops and took the city without resistance.