 Complete the following phrase:  Militarily, Muhammad Ali recaptured the Arabian territories for the sultan, and conquered Sudan on his own accord. His attempt at suppressing the Greek rebellion failed decisively, however, following an intervention by the European powers at Navarino. In 1831, Muhammad Ali waged war against the sultan, capturing Syria, crossing into Anatolia and directly threatening Constantinople, but the European powers forced him to retreat. After a failed Ottoman invasion of Syria in 1839, he launched another invasion of the Ottoman Empire in 1840; he defeated the Ottomans again and opened the way towards a capture of Constantinople. Faced with another European intervention, he accepted a brokered peace in 1842 and withdrew from the Levant; in return, he and his descendants were granted hereditary rule over Egypt and Sudan. The dynasty he established would rule Egypt until the 