Due to the Napoleonic Wars, the capital of Portugal was moved from Lisbon to Rio de Janeiro for thirteen years.