The history of the leadership on the islands is closely related to the history of the Falkland Islands themselves. The first settlement on the islands was at Port St. Louis and was led by Louis Antoine de Bougainville, the Administrator of the French settlement which started in 1764 and ended three years later. The first leader of a British settlement was John McBride, Captain of HMS Jason, in 1766 at Port Egmont (the settlement being established a year earlier). The French settlement of Port St. Louis was transferred to the Spanish in 1767 and renamed Puerto Soledad, the first Spanish Military Administrator being Felipe Ruíz Puente. The British chose to withdraw from many overseas settlements in 1776 due to the pressure of the American War of Independence. The Spanish settlement ended in 1811 as a result of the Peninsular war.