Ismail achieved a considerable degree of independence from the Porte (from Sublime Porte, the term for the High Gate that came to be synonymous with the Ottoman government) by making large payments to the Ottoman treasury.
Ismail's attempt to make Egypt independent foundered eventually because of the gap between the revenues the country could produce and the expenses necessary to achieve his goals.
In October 1822 Ismail, with his retinue, was burnt to death by Nimr, the melk (king) of Shendi; and the defterdar, a man infamous for his cruelty, assumed the command of those provinces, and exacted terrible retribution from the inhabitants.
On the June 26, 1879 Ismail suddenly received from the sultan a curt telegram, addressed to him as ex-khedive of Egypt, informing him that his son Tewfik was appointed his successor.
Urabi pleaded guilty, was sentenced to death, the sentence being commuted by the khedive to banishment; and Riaz resigned in disgust.