Liberia began in the early 19th century as a project of the American Colonization Society (ACS), which believed black people would face better chances for freedom and prosperity in Africa than in the United States. Between 1822 and the outbreak of the American Civil War in 1861, more than 15,000 freed and free-born black people who faced social and legal oppression in the U.S., along with 3,198 Afro-Caribbeans, relocated to Liberia. Gradually developing an "Americo-Liberian" identity, the settlers carried their culture and tradition with them; the Liberian constitution and flag were modeled after those of the U.S., while its capital was named after ACS supporter and U.S. President James Monroe. Liberia declared independence on July 26, 1847, which the U.S. did not recognize until February 5, 1862. On January 3, 1848, Joseph Jenkins Roberts, a wealthy, free-born African American from the U.S. state of Virginia who settled in Liberia, was elected Liberia's first president after the people proclaimed independence.