After the end of the Iberian Union in 1640, the governors of Brazil that were members of the Portuguese high nobility started to use the title of Viceroy.[6] Brazil became a permanent Viceroyalty in 1763, when the capital of the State of Brazil (Estado do Brasil) was transferred from Salvador to Rio de Janeiro.[7]