After France initiated its Anglo-French War of 1778-83, it invoked their Bourbon Family Compact with Spain, an alliance that had been in place since the Bourbons had become Spain's ruling dynasty in 1713. The secret Franco-Spanish Treaty of Aranjuez was signed on 12 April 1779. France agreed to aid Spain in the capture of British-held territory in Gibraltar adjacent Spain, East Florida, West Florida and the island of Menorca in the Mediterranean. On 21 June 1779, Spain declared war on Britain to join France, but it did not join the Franco-American alliance of 1778 that guaranteed US independence. Britain recognized the independence of the United States in the Treaty of Paris, officially ending the American Revolution, signed 3 Sept 1783. On the other hand, Spain was one of the last participants of wars against Britain to acknowledge the independence of the United States.