Liberia was founded as a colony for freed American slaves in 1822; various settlements were founded along the coast in the following years, with the bulk of them uniting to create the Republic of Liberia in 1847 (the Republic of Maryland joined later in 1857).