section_path: Rise of the "Second" British Empire (1783–1815)/Wars with France
section_name: Wars with France
paragraph_text: Wars with France
  
  Britain was challenged again by France under Napoleon, in a struggle that, unlike previous wars, represented a contest of ideologies between the two nations. It was not only Britain's position on the world stage that was at risk: Napoleon threatened to invade Britain itself, just as his armies had overrun many countries of continental Europe.
  
  The Napoleonic Wars were therefore ones in which Britain invested large amounts of capital and resources to win. French ports were blockaded by the Royal Navy, which won a decisive victory over a French Imperial Navy - Spanish Navy fleet at the Battle of Trafalgar in 1805. Overseas colonies were attacked and occupied, including those of the Netherlands, which was annexed by Napoleon in 1810. France was finally defeated by a coalition of European armies in 1815. Britain was again the beneficiary of peace treaties: France ceded the Ionian Islands, Malta (which it had occupied in 1798), Mauritius, St Lucia, the Seychelles, and Tobago; Spain ceded Trinidad; the Netherlands ceded Guiana, Ceylon and the Cape Colony, while the Danish ceded Heligoland. Britain returned Guadeloupe, Martinique, French Guiana, and Réunion to France; Menorca to Spain; Danish West Indies to Denmark and Java and Suriname to the Netherlands.