Answer
The removal of Selim III from power was executed through a coup d'état, a sudden and forceful seizure of political power. It was orchestrated by a group of disgruntled Janissaries, the elite Ottoman infantry, in collaboration with other factions opposed to Selim III's modernizing policies and his alliance with European powers. The coup ultimately resulted in Selim III's dethronement and the installation of Mustafa IV as the new sultan.