Egypt under Muhammad Ali Dynasty
Muhammad Ali was a commander in the Ottoman army that was sent to drive Napoleon's forces out of Egypt, but upon the French withdrawal, seized power himself and forced the Ottoman Sultan Mahmud II to recognize him as Wāli, or Governor of Egypt in 1805. He traced his ancestry back to Ibrahim Aga, from Korca, Albania, who had moved to Kavala. Demonstrating his grander ambitions, he took the title of Khedive; however, this was not sanctioned by the Sublime Porte.
Muhammad Ali transformed Egypt into a regional power which he saw as the natural successor to the decaying Ottoman Empire. He constructed a military state with around four percent of the populace serving the army to raise Egypt to a powerful positioning in the Ottoman Empire in a way showing various similarities to the Soviet strategies (without communism) conducted in the 20th century. Muhammad Ali summed up his vision for Egypt in this way:
I am well aware that the [Ottoman] Empire is heading by the day toward destruction. ... On her ruins I will build a vast kingdom ... up to the Euphrates and the Tigris.
— Georges Douin, ed., Une Mission militaire française auprès de Mohamed Aly, correspondance des Généraux Belliard et Boyer (Cairo: Société Royale de Géographie d'Égypte, 1923), p.50
At the height of his power, Muhammad Ali and his son Ibrahim Pasha's military strength did indeed threaten the very existence of the Ottoman Empire as he sought to supplant the Osman Dynasty with his own. Ultimately, the intervention of the Great Powers prevented Egyptian forces from marching on Constantinople, and henceforth, his dynasty's rule would be limited to Africa, and Sinai. Muhammad Ali had conquered Sudan in the first half of his reign and Egyptian control would be consolidated and expanded under his successors, most notably Ibrahim Pasha's son Isma'il I.