During the British occupation of Manila (1762–1764), Bacolor became the provisional Spanish colonial capital and military base.