Why was the 13th amendment added to the constitution?

A to give women the right to vote
B to prevent states from continuing the practice of slavery
C to give the federal government the power to prevent rebellions
D to establish proper checks and balances between states and federal governments

B to prevent states from continuing the practice of slavery