Nope, there were dozens of countries that abolished slavery later than Brazil. The most recent was Mauritania, in 1981.
https://en.wikipedia.org/wiki/Timeline_of_abolition_of_slave...
I believe Brazil was the last country in the Americas to abolish slavery, but far from the last country in the world as a whole to do so.
Almost 40% of slaves traded over the Atlantic went to Brazil.
https://en.wikipedia.org/wiki/Penal_labor_in_the_United_Stat...
Dom Pedro I tried to abolish the slavery in the very beginning of our independence. What stop him? The Congress. And he respected the congress because he wasn’t a dictator. The same thing happened with Dom Pedro II, who spent his life trying to end slavery.
People think that a monarch can do whatever he wants, but this is not true. Only dictators can do whatever they want.
... and at the same time replaced them with "indentured labour", who just so happened to be poor Indians famished by savagery of the British taxes and the famines they unleashed, and had little choice or say in pretty much anything.
Kind of like how Indian-labour is now treated in Middle-East and elsewhere and the Indian-state exploits them for its own foreign policy.
Extraordinary tactic to kill your competition.
Not long after slavery was abolish; loitering became a crime. See "Vagrancy Act 1824".
In 1807, United Kingdom prohibited slave trade in their colonies and pressed Portugal (that had very close relationship with UK) to do the same.
But Brazilian economy depended on slave labor. And land owners weren't having it.
Dom Pedro I declared the independence to calm down the the elite while keeping the country under Portugal influence -- the newly independent country was a monarchy with an imperator from the Portuguese Royal family.
Thanks to him and his son, Brazil was the last country to abolish slavery.
But hey, at least the country didn't break into many small nations. And avoided wars. So in the end it was good I guess \s.