The Kingdom of Great Britain occupied the Spanish colonial capital of Manila and the nearby port of Cavite for eighteen months, from 6 October 1762 to the first week of April 1764. The occupation was an extension of the larger Seven Years' War between Britain and France, which Spain had recently entered on the side of the French.
The British wanted to use Manila as an entrepôt for trade in the region, particularly with China. In addition, the Spanish governor agreed to deliver a ransom to the British in exchange for the city being spared from any further sacking.