Following the treaties of Kutsuk-Kainartzi (1774) and Ainali Kavac (1784), Greek commercial shipping developed impressively, with Greek ships trading in the Aegean, the eastern Mediterranean and the Black Sea under the Russian flag. The Greek commercial fleet gradually gained strength throughout the Mediterranean – the main Greek seaports being Galaxidi, Mesolongi, Psara, Spetses, Hydra, etc. After the Russian-Turkish war of 1787-1792, the Greek islands were given privileges (shipbuilding rights, ample freedom of movement in Istanbul, etc.) to avert Russian influence. These actions resulted in the empowerment of Greek trade. At the same time, the outbreak of the French Revolution (1789) and the subsequent weakening of French trade gave substantial commercial advantages to the Greeks, who benefited from the absence of the French in the Mediterranean. The Greeks will later benefit from the competition between France and Great Britain, which affected the trading abilities of the two countries, and from the Napoleonic Wars (1803-1815), trading with the blockaded ports.