Selim III
He was originally the "ayan" (provincial notable) of Rusçuk, and one of the strongest ayans of his time. The deposition of the reformer Sultan Selim III in 1807, and his replacement with the reactionary Mustafa IV by the Janissaries and other opponents of reform, provoked Alemdar Mustafa Pasha to lead his army of Albanians and Bosnians to Constantinople in an attempt to reinstate Selim III and restore his reforms. After he arrived, Mustafa IV ordered Selim III and Mahmud II killed, succeeding in the former case. Alemdar Mustafa Pasha, seeing Selim III dead, gave fealty to Mahmud II (Selim's cousin), and he was instated the sultan, with Alemdar as his Grand Vizier.