The Treaties of Tilsit ended the war between Russia and France and began an alliance between the two empires that held as much power as the rest of Europe. The two empires secretly agreed to aid each other in disputes. France pledged to aid Russia against the Ottoman Empire, while Russia agreed to join the Continental System against Britain. Napoleon also forced Alexander to enter the Anglo-Russian War and to instigate the Finnish War against Sweden in order to force Sweden to join the Continental System.