سليم الثالث
Sultan Selim III (reigned 1789–1807) had recognized the need to reform and modernize the Ottoman military, along European lines, to ensure that his state could compete. Selim III, however, faced stiff local opposition from an entrenched clergy and military apparatus, especially from the Janissaries. Consequently, Selim III was deposed and ultimately killed in 1808.