What was the purpose of the thirteenth amendment?

What was the purpose of the thirteenth amendment?