Lisbon
Lisbon is one of the oldest cities in the world, and one of the oldest in Western Europe, predating other modern European capitals such as London, Paris, and Rome by centuries. Julius Caesar made it a municipium called "Felicitas Julia", adding to the name "Olissipo". Ruled by a series of Germanic tribes from the 5th century, it was captured by the Moors in the 8th century. In 1147, the Crusaders under Afonso Henriques reconquered the city and since then it has been a major political, economic and cultural centre of Portugal. Unlike most capital cities, Lisbon's status as the capital of Portugal has never been granted or confirmed officially – by statute or in written form. Its position as the capital has formed through constitutional convention, making its position as "de facto" capital a part of the Constitution of Portugal.
Portuguese Empire
In 1808, Napoleon Bonaparte invaded Portugal, and Dom João, Prince Regent in place of his mother, Dona Maria I, ordered the transfer of the royal court to Brazil. 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. There was also the election of Brazilian representatives to the Cortes Constitucionais Portuguesas (Portuguese Constitutional Courts), the Parliament that assembled in Lisbon in the wake of the Liberal Revolution of 1820.