Selim III (Ottoman Turkish: سليم ثالث, romanized: Selim-i sâlis; Turkish: III. Selim; 24 December 1761 – 28 July 1808) was the sultan of the Ottoman Empire from 1789 to 1807. Regarded as an enlightened ruler,[3] he was eventually deposed and imprisoned by the Janissaries, who placed his cousin Mustafa on the throne as Mustafa IV (r. 1807–1808). A group of assassins subsequently killed Selim.