Verified Answer :

In the northern parts of America, it was illegal
In the southern, it was legal.

KDRC

slavery is never good first of all. however if your looking for a historical answer the south wanted slavery and the north thought it was wrong and that was the biggest factor the the American civil war. hope this helps.