Defeats and the Nizam-ı Cedid

General Bonaparte occupied Egypt. Shaken by this unexpected blow, the Sublime Porte fought France from 1798 to 1802. In the end the French evacuated the province of Egypt, but there were revolts in Arabia. Feudal lords (derebeys) had sprung up in Anatolia and Rumelia. The authority of the Sublime Porte, and even of the padishah, over the provinces suffered heavy blows. In 1806 the Serbian Revolution broke out and war with Russia began anew. In this atmosphere, once again a most contemptible revolt appeared. With the Kabakçı Revolt (25 May 1807), Selim III was deposed. The work of the great reformist ruler, who had refrained from using the Nizam-ı Cedid army against the Kapıkulu corps so that brotherly blood would not be shed, was destroyed. The Nizam-ı Cedid was abolished. Selim III's cousin (the eldest son of Abdülhamid I), Mustafa IV, was placed on the throne. These were the years when France and Napoleon sought to dominate Europe and even the world. On the threshold of the nineteenth century, in 1800, the world population was about 839.2 million: Asia 541.5 million (65%), Europe 189 million (22.2%), Africa 76.9 million (9%), North America 16 million (2%), South America 13 million (1.5%), Oceania 3 million (0.3%). The areas and populations of the Great Powers were as follows: the French Republic (3,318,849 km2, 31.1 million), the Kingdom of England (13,242,866 km2, 78.6 million), the Russian Empire (17,850,091 km2, 22 million), the Empire of Turkey (12,187,705 km2, 63.7 million), the Chinese Empire (11,765,119 km2, 280 million), the German Empire (980,236 km2, 41.5 million), the Kingdom of Spain (14,887,048 km2, 32.2 million), the Kingdom of Prussia (280,000 km2, 9.5 million), the Turkish Empire of Iran (1,735,654 km2, 12.5 million).

The supporters of the Nizam-ı Cedid chose Alemdar Mustafa Pasha, one of the viziers, as their leader. Alemdar came to Istanbul with his army. Mustafa IV had Selim III martyred (28 July 1808). But he was deposed, and his brother Mahmud II (1808-1839) became padishah.

The Nizam-ı Cedid was revived under the name "Sekban-ı Cedid". The rebels were purged. Everyone connected with the martyrdom of Selim III, even in the most remote way (close to a thousand people), was executed. The 23-year-old Mahmud II had been raised by the childless Selim III like his own son, with the greatest care and affection; he was the heir to all the ideas of Selim III, whom he called "uncle" (although in reality, despite the great difference in their ages, they were cousins). But the Janissaries had grown exceedingly unruly, and the young padishah lacked influence. Grand Vizier Alemdar Mustafa Pasha also made mistakes and could not win affection; even the padishah treated him coldly. The Janissaries rose up and martyred Alemdar (15 November 1808).

Then they attacked the Palace to kill Mahmud II. The fleet, too, joined this civil war. Istanbul witnessed an internal battle such as it had never seen in its history and would never see again. The padishah was fighting against the Kapıkulu corps with the very well-trained Sekban-ı Cedid units. The fleet, loyal to the padishah, bombarded Süleymaniye from the Sea of Marmara (the official palace of the Janissary agha stood in Süleymaniye); Süleymaniye was devastated. Almost miraculously, the great work of Mimar Sinan was not hit. Much blood was shed. The two sides, the padishah and the Kapıkulu troops, could not overcome each other. Mahmud II announced that he was abandoning the reforms and the creation of a modern army; and the Janissaries in turn swore allegiance to him. Turkey lost its most precious 18 years. During this time Mahmud II ruled on a balance as thin as a hair. Tirelessly, step by step, he placed his own men in the Janissary corps. At the same time he was dealing with very great external troubles.