slavery was legal in 1836/
In 1812, James Madison invaded Canada, in an attempt add free states to the Union, so the slaves could be freed. 5 new states would have been added; Upper Canada, Lower Canada, New Brunswick, Novia Scotia, and Newfoundland. But the invasion was botched.
In 1829, at the Virginia Cons utional Convention, Madison pushed through changes that allowed poor whites (who didn't own slaves) to vote, and reduced slave power by giving less weight to slaves for puposes of seating the legislature.
Then, in 1832, Madison sent his people & elected representatives into the Virginia legislature. They tried to end slavery in Virginia, but that didn't work either. I was a real fight.
Madison went the extra mile to help free all the slaves.