Lisbon
Lisbon (; , ) is the capital and the largest city of Portugal, with an estimated population of 505,526 within its administrative limits in an area of 100.05 km. Its urban area extends beyond the city's administrative limits with a population of around 2.8 million people, being the 11th-most populous urban area in the European Union. About 3 million people live in the Lisbon Metropolitan Area (which represents approximately 27% of the country's population). It is mainland Europe's westernmost capital city and the only one along the Atlantic coast. Lisbon lies in the western Iberian Peninsula on the Atlantic Ocean and the River Tagus. The westernmost areas of its metro area form the westernmost point of Continental Europe, which is known as Cabo da Roca, located in the Sintra Mountains.
Emperor
When Napoleon I ordered the invasion of Portugal in 1807 because it refused to join the Continental System, the Portuguese Braganzas moved their capital to Rio de Janeiro to avoid the fate of the Spanish Bourbons (Napoleon I arrested them and made his brother Joseph king). When the French general Jean-Andoche Junot arrived in Lisbon, the Portuguese fleet had already left with all the local elite.