unskilled a politician as his father, King João, had feared; in 1824 he adopted a constitution for the country without consulting the powerful members of the merchant class who had supported him. He assumed all of Portugal's colonial debts, and invited an influential English presence into his court, which angered Brazilians. In 1831 the Brazilian army forced Pedro to step down and abdicate power to his six-year-old son, also named Pedro. A regency of Brazilian military officials and politicians ruled until Pedro II assumed leadership in 1840, at the age of fifteen. Pedro II was a sensitive, capable leader and his reign lasted until 1889, when he enacted a measure that freed all Brazilian slaves. The merchant class, dependent on slavery, overthrew Pedro II, and a provisional republican government, begun by the general that had seized power, lasted until 1937.