On 3 February 1807, British troops under the command of General Samuel Auchmuty and Admiral Charles Stirling occupied the city during the Battle of Montevideo (1807), but it was recaptured by the Spanish in the same year on 2 September when John Whitelocke was forced to surrender to troops formed by forces of the Banda Oriental—roughly the same area as modern Uruguay—and of Buenos Aires. After this conflict, the governor of Montevideo Francisco Javier de Elío opposed the new viceroy Santiago de Liniers, and created a government Junta when the Peninsular War started in Spain, in defiance of Liniers. Elío disestablished the Junta when Liniers was replaced by Baltasar Hidalgo de Cisneros.

When did British troops occupy the city of Montevideo?