structural:expansion, quality:correction
War against the sultan

In compensation for his loss at Navarino, Muhammad Ali asked the Porte for the territory of Syria. The Ottomans were indifferent to the request; the Sultan himself asked blandly what would happen if Syria was given over and Muhammad Ali later deposed. But Muhammad Ali was no longer willing to tolerate Ottoman indifference. To compensate for his and Egypt's losses, the wheels for the conquest of Syria were set in motion.

Like other rulers of Egypt before him, Ali desired to control Bilad al-Sham (the Levant), both for its strategic value and for its rich natural resources; nor was this a sudden, vindictive decision on the part of Ali since he had harboured this goal since his early years as Egypt's unofficial ruler. For not only had Syria abundant natural resources, it also had a thriving international trading community with well-developed markets throughout the Levant; in addition, it would be a captive market for the goods now being produced in Egypt. Yet perhaps most of all, Syria was desirable as a buffer state between Egypt and the Ottoman Sultan.

A new fleet was built, a new army was raised and on 31 October 1831, under Ibrahim Pasha, the Egyptian invasion of Syria initiated the First Turko-Egyptian War. For the sake of appearance on the world stage, a pretext for the invasion was vital. Ultimately, the excuse for the expedition was a quarrel with Abdullah Pasha of Acre. The Wāli alleged that 6,000 fellahin had fled to Acre to escape the draft, corvée, and taxes, and he wanted them back. (See also: 1834 Arab revolt in Palestine)

The Egyptians overran most of Syria and its hinterland with ease. The strongest and only really significant resistance was put up at the port city of Acre. The Egyptian force eventually captured the city after a six-month siege, which lasted from 3 November 1831 to 27 May 1832. Unrest on the Egyptian home front increased dramatically during the course of the siege. Ali was forced to squeeze Egypt more and more in order to support his campaign and his people resented the increased burden.

After the fall of Acre, the Egyptian army marched north into Anatolia. At the Battle of Konya (21 December 1832), Ibrahim Pasha soundly defeated the Ottoman army led by the sadr azam Grand Vizier Reshid Pasha. There were now no military obstacles between Ibrahim's forces and Constantinople itself.

Through the course of the campaign, Muhammad Ali paid particular focus to the European powers. Fearing another intervention that would reverse all his gains, he proceeded slowly and cautiously. For example, Muhammad Ali continued the practice of using the sultan's name at Friday prayers in the newly captured territories and continued to circulate Ottoman coins instead of issuing new ones bearing his likeness. So long as Muhammad Ali's march did not threaten to cause the complete collapse of the Ottoman state, the powers in Europe remained as passive observers.

Despite this show, Muhammad Ali's goal was now to remove the current Ottoman Sultan Mahmud II and replace him with the sultan's son, the infant Abdülmecid. This possibility so alarmed Mahmud II that he accepted Russia's offer of military aid resulting in the Treaty of Hünkâr İskelesi. Russia's gain dismayed the British and French governments, resulting in their direct intervention. From this position, the European powers brokered a negotiated solution in May 1833 known as the Convention of Kutahya. The terms of the peace were that Ali would withdraw his forces from Anatolia and receive the territories of Crete (then known as Candia) and the Hijaz as compensation, and Ibrahim Pasha would be appointed Wāli of Syria. The peace agreement fell short, however, of granting Muhammad Ali an independent kingdom for himself, leaving him wanting.

Sensing that Muhammad Ali was not content with his gains, the sultan attempted to pre-empt further action against the Ottoman Empire by offering him hereditary rule in Egypt and Arabia if he withdrew from Syria and Crete and renounced any desire for full independence. Muhammad Ali rejected the offer, knowing that Mahmud could not force the Egyptian presence from Syria and Crete.

On 25 May 1838, Muhammad Ali informed Britain, and France that he intended to declare independence from the Ottoman Empire. This action was contrary to the desire of the European powers to maintain the status quo within the Ottoman Empire. With Muhammad Ali's intentions clear, the European powers, particularly Russia, attempted to moderate the situation and prevent conflict. Within the Empire, however, both sides were gearing for war. Ibrahim already had a sizable force in Syria. In Constantinople, the Ottoman commander, Hafiz Pasha, assured the Sultan that he could defeat the Egyptian army.

When Mahmud II ordered his forces to advance on the Syrian frontier, Ibrahim attacked and destroyed them at the Battle of Nezib (24 June 1839) near Urfa. In an echo of the Battle of Konya, Constantinople was again left vulnerable to Ali's forces. A further blow to the Ottomans was the defection of their fleet to Muhammad Ali. Mahmud II died almost immediately after the battle took place and was succeeded by sixteen-year-old Abdülmecid. At this point, Ali and Ibrahim began to argue about which course to follow; Ibrahim favoured conquering the Ottoman capital and demanding the imperial seat while Muhammad Ali was inclined simply to demand numerous concessions of territory and political autonomy for himself and his family.

At this point, the European powers again intervened (see Oriental Crisis of 1840). On 15 July 1840, the British government, which had negotiated with Austria, Prussia, and Russia to sign the Convention of London, offered Muhammad Ali hereditary rule of Egypt as part of the Ottoman Empire if he withdrew from the Syrian hinterland and the coastal regions of Mount Lebanon. Muhammad Ali hesitated, believing he had support from France. His hesitation proved costly. France eventually backed down as King Louis-Philippe did not want his country to find itself involved and isolated in a war against the other powers, especially at a time when he also had to deal with the Rhine crisis. British naval forces were ordered to sail to Syria and Alexandria. In the face of such displays of European military might, Muhammad Ali acquiesced.

After the British and Austrian navies established a naval blockade over the Nile delta coastline and launched an attack on Egyptian controlled Acre, Muhammad Ali agreed to the terms of the Convention on 27 November 1840. These terms included renouncing his claims over Crete, and Hijaz, downsizing his navy, and reducing his standing army to 18,000 men, provided that he and his descendants would enjoy hereditary rule over Egypt and Sudan: an unheard-of status for an Ottoman governor.