Muhammad Ali dynasty

The Muhammad Ali dynasty or the Alawiyya dynasty was the ruling dynasty of Egypt and Sudan from the 19th to the mid-20th century. It is named after its progenitor, Muhammad Ali of Egypt, regarded as the founder of modern Egypt.
Muhammad Ali was an Albanian commander in the Ottoman Albanian army that was sent to drive Napoleon's forces out of Egypt. After Napoleon’s withdrawal, he aligned himself with Omar Makram, the leader of Egyptian resistance against the French, rose to power with his Albanian troops, and forced the Ottoman Sultan Selim III to recognise him as Wāli (Governor) of Egypt in 1805. Demonstrating his grander ambitions, he took the far higher title of Khedive, an honorific used by the Sultan himself. His sons and successors as Egypt's ruler, Ibrahim Pasha, Abbas I, and Sa'id Pasha, would all follow his example in using the title, however, this was not sanctioned by the Sublime Porte until the reign of his grandson Isma'il the Magnificent in 1867.
He traced his ancestry back to Ibrahim Aga, an Albanian who lived in Kavala, Greece.
Through his reforms, and military campaigns, 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. Muhammad Ali summarised his vision for Egypt in this way:
Muhammad Ali conquered Sudan in the first half of his reign, establishing the foundations of what would eventually become the modern Sudanese state. Egyptian control in Sudan would be consolidated and expanded under his successors, most notably Ibrahim Pasha's son, Isma'il the Magnificent.
At the height of his power, the military strength of Muhammad Ali and Ibrahim Pasha did indeed threaten the very existence of the Ottoman Empire, as he sought to supplant the Osman Dynasty with his own. Ultimately, however, the intervention of the Great Powers in the Oriental Crisis of 1840 prevented Egyptian forces from marching on Constantinople, and compelled Muhammad Ali to reconcile himself with the Ottoman Sultan. Henceforth, with Egypt's eastern frontier fixed at the boundary between Sinai and Ottoman Palestine, his dynasty's territorial expansion would be restricted to Africa.
Though Muhammad Ali and his descendants used the title of Khedive (Viceroy) in preference to the lesser Wāli, this was not recognized by the Porte until 1867 when Sultan Abdulaziz officially sanctioned its use by Isma'il Pasha and his successors. In contrast to his grandfather's policy of war against the Porte, Isma'il sought to strengthen the position of Egypt and Sudan and his dynasty using less confrontational means, and through a mixture of flattery and bribery, Isma'il secured official Ottoman recognition of Egypt and Sudan's virtual independence. This freedom was severely undermined in 1879 when the Sultan colluded with the Great Powers to depose Isma'il in favor of his son Tewfik. Three years later, Egypt and Sudan's freedom became little more than symbolic when the United Kingdom invaded and occupied the country, ostensibly to support Khedive Tewfik against his opponents in Ahmed Orabi's nationalist government. While the Khedive would continue to rule over Egypt and Sudan in name, in reality, ultimate power resided with the British High Commissioner.
In defiance of the Egyptians, the British proclaimed Sudan to be an Anglo-Egyptian Condominium, a territory under joint British and Egyptian rule rather than an integral part of Egypt. This was continually rejected by Egyptians, both in government and in the public at large, who insisted on the "unity of the Nile Valley", and would remain an issue of controversy and enmity between Egypt and Britain until Sudan's independence in 1956.
Khedive Abbas II sided with the Ottoman Empire which had joined the Central Powers in the World War I, and was promptly deposed by the British in favor of his uncle Hussein Kamel. The legal fiction of Ottoman sovereignty over Egypt and Sudan, which had for all intents and purposes ended in 1805, was officially terminated, Hussein Kamel was declared Sultan of Egypt and Sudan, and the country became a British Protectorate. With nationalist sentiment rising, as evidenced by the revolution of 1919, Britain formally recognized Egyptian independence in 1922, and Hussein Kamel's successor, Sultan Fuad I, substituted the title of King for Sultan. However, British occupation and interference in Egyptian and Sudanese affairs persisted. Of particular concern to Egypt was Britain's continual efforts to divest Egypt of all control in Sudan. To both the King and the nationalist movement, this was intolerable, and the Egyptian Government made a point of stressing that Fuad and his son King Farouk I were "King of Egypt and Sudan".
The reign of Farouk was characterised by ever increasing nationalist discontent over the continuing British occupation, royal corruption and incompetence, and the disastrous Palestine War of 1948–1949. All these factors served to terminally undermine Farouk's position, and paved the way for the Egyptian Revolution of 1952. Farouk was forced to abdicate in favor of his infant son Ahmed Fuad, who became King Fuad II, while administration of the country passed to the Free Officers Movement under Mohamed Naguib and Gamal Abdel Nasser. The infant king's reign lasted less than a year, and on 18 June 1953, the revolutionaries abolished the monarchy, and declared Egypt a republic, ending a century and a half of the Muhammad Ali dynasty's rule.
King Khedive & Sultan