[1][2] During the Napoleonic Wars, the Portuguese were concerned at being unable to defend their empire from the predatory French or her allied navies.
[3] Due to the historic Anglo-Portuguese Alliance, British India was keen to assist in Goa's security.
The British soldiers were posted at strategic locations like Aguada, Miramar, Caranzalem, Palacio do Cabo and Morumugão.
This amicable agreement ended in 1813, thanks largely to the massive defeat of the French and Spanish fleets at Trafalgar in 1805.
[6][7] During this time, the Portuguese were still in charge of the administration of the territory (the local government was headed by the Viscount of Mirandela from 1794 to 1806, then by the Count of Sarzedas from 1806 to 1816).