In the meantime one Austrian army defeated the Turks in Ser bia and captured Belgrade, while another in conjunction with the Russian army captured Foschani. On Aug. 4, 1791, the new Aus trian emperor, Leopold, who was unfavourable to the Russian alliance, made a peace with Turkey at Sistova through the media tion of England, Prussia and Holland, by which Belgrade was restored to Turkey. But Russia, after defeating the Swedes, who were Turkey's allies with Prussia, was free to carry out her policy of extension in Turkey, and the war continued. It was about this time that William Pitt in England proposed the policy of preserv ing the integrity of the Turkish empire. It appeared first in the form of friendly advice to Russia to make peace with Turkey, which was rejected by Catherine II. Turkey after several reverses on the field, made peace with Russia in 1792 at Jassy, the Dniester becoming the Turkish frontier in Europe.
Selim continued his reforms, especially in the army. He formed a new corps, but in order to disarm the jealousy of the janissaries he affiliated the new corps to them. Military schools were opened, the fleet reorganized, and instructors brought from Europe. But his progress was interrupted by the war with France (1798). Bonaparte attacked Egypt, more indeed as a move against Eng land than against Turkey, as his aim was the closing of the route to India. Turkey fought against France in Alliance with England and Russia. Napoleon was beaten in Syria, the French fleet destroyed by Nelson at Aboukir, and the Ionian islands captured by the Turkish and Russian fleets. Peace was concluded with France in 1802. The reactionary governors whose interests were injured by the new reforms continued to cause disorder in every part of the empire. Pasvan Oglou, the governor of Vidin, drove the peaceful rayas to revolt by his persecutions, and the insur gents chose Karageorge (George Petrovic) as leader and suc ceeded in taking Belgrade. An army was sent to punish Pasvan Oglou, without result. The revolt of the Wahhabis in Nejd became another source of anxiety which continued till the time of Mah moud II. A marked renewal of trouble broke out with Russia over the principalities. Constantine Ypsilanti and Alexander Murusi, hospodars of Walachia and Moldavia, two instruments of Russia, had caused risings against the Porte which had led Turkey to dismiss them without the consent of Russia, thus vio lating the agreement of 1802. Russia and England protested, and the two were replaced. But, encouraged by the French ambassa dor, General Sebastiani, Turkey declared war against Russia, although the British ambassador threatened to join Russia against Turkey (Nov. 6, 1806). The British fleet passed the Straits, an chored off Istamboul and delivered an ultimatum, ordering Turkey to dismiss the French ambassador within 24 hours and to make peace with Russia. The Porte, encouraged by Sebastiani and by
popular indignation at the presence of the ships, decided to resist. The entire population of Constantinople helped to range a thou sand guns along both sides of the Bosphorus in one day. The British fleet retired considerably damaged.
In the meantime the reforms and the progress of the new army were leading the janissaries and the corrupt officials to make desperate efforts in opposition, and they were supported by most of the reactionary governors. In 1807 the garrisons on the Black Sea rose, under Kabakji Mustafa, and killed their officers and all those who were known to be reformists. The rebellion became general and the abolition of the new troops was demanded. The concessions made by the sultan in the hope of preventing further bloodshed only encouraged the rebels to make greater demands, and finally they dethroned him. General Sebastiani is charged by the Turkish historians with inciting the janissaries.