The onset of the French Revolution in 1789 and the subsequent French Revolutionary Wars greatly changed the political face of Europe and resulted in the largest expansion of the Austrian Navy up to that point in time. Under Joseph II's successor, Leopold II, the Austrian Navy was formally located out of the port of Trieste. In 1797 with the Treaty of Campo Formio between France and Austria which ended the War of the First Coalition, Austria ceded to France the Austrian Netherlands and certain islands in the Mediterranean, including Corfu and some Venetian-held islands in the Adriatic. The Republic of Venice and its territories were divided between the two states, and Austria received the city of Venice along with Istria and Dalmatia. Venice's naval forces and facilities were also handed over to Austria and became the basis of the formation of the future Austrian Navy.