Bahia gains independence, ending Portuguese rule in Brazil

The state was the last area of the country to join the Empire of Brazil, as members in the local elite remained loyal to the Portuguese crown after the rest of the country proclaimed independence under Pedro I on 7 September 1822.