Why was Liberia created?

Liberia was founded in 1821 It was founded so that the freed slaves from the US could have somewhere to live.