As such, overseas possessions were a part of Portuguese identity. The first time that Portugal was a pluricontinental country was during the reign of Maria I of Portugal, with the creation of the United Kingdom of Portugal, Brazil and the Algarves, when the Portuguese court was living in Brazil and Rio de Janeiro served as the capital for the country. The idea of pluricontinentalism quickly collapsed following the Carnation Revolution in 1974.