Dom João IV came, but soon went back to Portugal leaving his son, Don Pedro I , to be the responsible. Dom Pedro reigned for some time, but then he also gave up the throne, and went back to Portugal. After Dom Pedro I left, the throne went to his son, Dom Pedro II. Dom Pedro II reigned and in his time, he guided the colonized Brazil to the independence. Creating the republic.