The Battle of Jeddah was fought in 1813 at the west Arabian port city of Jeddah as part of the Ottoman–Saudi War. The Ottoman army of Tusun Pasha retreated from Medina which had been captured by the Saudis, and a new army led by his father Muhammad Ali Pasha arrived from Egypt. The combined forces quickly marched to defend the city of Jeddah immediately from the advancing Saudis, and the Ottoman puppet ruler Ghalib ibn Musa'id was sent to Constantinople as a prisoner to avoid any sort of cooperation between him and the Arab rebels. A few days later, the Saudi forces captured Jeddah and forced the Ottoman army to retreat. Sultan Mahmud II tried to negotiate with the Saudi rebels by using Ghalib Efendi as a negotiation tool however the negotiations failed and Ghalib ibn Musa'id was instead e