In 1756, during the Seven Years' War, France captured the island after the Siege of Fort St Philip and a failed British relief attempt. The 1763 Treaty of Paris enabled the British to return to the island after Britain's victory in the Seven Years' War. In 1781, during the American War of Independence, the British were defeated for a second time, in this instance by a combination of French and Spanish forces, and on 5 January 1782 the Spanish regained control of the island, after a long siege of St. Philip's Castle in Port Mahon. The British ceded the island back to Spain the next year in the Treaty of Versailles. Menorca was invaded by the British once again in 1798, during the French Revolutionary Wars, but it was finally repossessed by Spain by the terms of the Treaty of Amiens in 1802. The British influence can still be seen in local architecture, with elements such as sash windows.