Viceroyalty of Brazil

The position of viceroy was abolished, when the Portuguese court transferred to Brazil in 1808, with the State of Brazil becoming directly administered by the Portuguese Government seated in Rio de Janeiro.

Since the 17th century, the title of "viceroy" was granted occasionally to some governors of the State of Brazil, who were members of the Portuguese high nobility, with the first being D. Jorge Mascarenhas, marquis of Montalvão, who assumed the office in 26 May, 1640.

The driving force for the move was the then tiny village of São Paulo dos Campos de Piratininga, and its capital was made São Sebastião do Rio de Janeiro as a result of the Emboabas' War against Portuguese recent arrivals and colonizers from Bahia, and the consequent shift of economic power to the gold-producing Minas dos Matos Gerais: São Sebastião do Rio de Janeiro was the port where the gold was sent to Portugal, and consequently the point of contact between metropolis and colony.

In 1775, the remaining states of the Portuguese America (Maranhão and Grão-Pará) were integrated in the State of Brazil, becoming under the authority of its viceroy, the capital maintained in Rio de Janeiro.

In 1808, with the Transfer of the Portuguese Court to Brazil, the Prince Regent (future John VI of Portugal) assumed direct control of the government of the State of Brazil, suppressing the office of viceroy.

The Viceroyalty of Brazil in 1817