originally a colony of the Portuguese Empire but became its center when the Prince Regent João VI fled the French invasion of Portugal in 1808. When João returned to Portugal he left his son Pedro as regent of the autonomous Kingdom of Brazil.