Selim III was killed
On the day Alemdar Mustafa Pasha seized the Sublime Porte, Selim III was killed in the palace on the order of Mustafa IV. According to the TDV Encyclopaedia of Islam article on Selim III, this was a decision taken in order to prevent an attempt to restore a deposed sultan to the throne. Selim's death resulted in the accession of Mahmud the same day.