In 1838 , other African-American settlements were joined to the Commonwealth of Liberia , which said that it was independent and not a part of Liberia in 1847 . In 1838 , other African-American settlements were united into the Commonwealth of Liberia , which declared its independence in 1847 .