Brazil has always been a colony.
Brazil . Brazil remained a Portuguese colony until 1808 , when the capital of the empire was transferred from Lisbon to Rio de Janeiro . In 1815 , the colony was elevated to the rank of kingdom upon the formation of the United Kingdom of Portugal , Brazil and the Algarves . Independence was achieved in 1822 with the creation of the Empire of Brazil , a unitary state governed under a constitutional monarchy and a parliamentary system . Brazil is a founding member of the United Nations , the G20 , BRICS , Unasul , Mercosul , Organization of American States , Organization of Ibero-American States , and the CPLP . Dona Maria I ( English : Mary I ; 17 December 1734 -- 20 March 1816 ) was Queen of Portugal , Brazil , and the Algarves .