In the early 19th century, when the Portuguese Royal Court had to flee to the Portuguese colony of Brazil to escape the invading Napoleonic troops, a theatre modelled on the São Carlos was built in Rio de Janeiro.