After the invasion of Portugal in 1807, the Royal Family relocated to Brazil where it remained until 1821; Portuguese forces occupied French Guiana from 1809 to 1817. In one of the ironies of history, by 1825 the vast majority of Spanish and Portuguese colonies in South America had gained their independence while French Guiana remains part of France.