Selim III
Alemdar Mustafa Pasha an ayan in Rusçuk (Ruse, Bulgaria) was supporting the reformist Sultan Selim III (reigned 1789–1807). After Selim III was dethroned, Alemdar marched to Istanbul to reenthrone Selim III. However Selim had been killed by the new Sultan Mustafa IV. Alemdar dethroned Mustafa IV and enthroned his brother Mahmut II (reigned 1808–1839). To show gratitude, Mahmut II appointed Alemdar as his grand vizier.