In 1815 Brazil was elevated to the status of Kingdom, the Portuguese state officially becoming the United Kingdom of Portugal, Brazil and the Algarves ("Reino Unido de Portugal, Brasil e Algarves"), and the capital was transferred from Lisbon to Rio de Janeiro, the only instance of a European country being ruled from one of its colonies.