In the autumn of 1807, Napoleon moved French troops through Spain to invade Portugal. From 1807 to 1811, British-Portuguese forces would successfully fight against the French invasion of Portugal in the Peninsular War, during which the royal family and the Portuguese nobility, including Maria I, relocated to the Portuguese territory of Brazil, at that time a colony of the Portuguese Empire, in South America. This episode is known as the Transfer of the Portuguese Court to Brazil.