The Viceroyalty of Brazil refers, in narrow scope, to the office of viceroy of the Portuguese colonial State of Brazil. In broad scope, it refers to the whole State during the period when its governors had the title of "viceroy" Until 1763, the title was occasionally granted to some governors of Brazil who were members of the high nobility. The position was abolished when the Portuguese court transferred to Brazil in 1808.