محمود الثاني
Alemdar Mustafa Pasha declared prince Mahmud the new sultan with the name Mahmud II, and became his grand vizier.