The fight for Brazilian independence in 1822 was fierce in Ceará, with the area being a rebel stronghold that incurred vicious retribution from loyalists. The captaincy became a province in 1822 under Dom Pedro I. A revolution followed in 1824, the president of the province was deposed fifteen days after his arrival, and a republic was proclaimed. Internal dissensions immediately broke out, the new president was assassinated, and after a brief reign of terror the province resumed its allegiance to the empire.