We trace the development of human capital in today's Senegal, Gambia, and Western Mali between 1770 and 1900. European trade, slavery, and early colonialism were linked to human capital formation, but this connection appears to have been heterogeneous. The contact with the Atlantic slave trade increased regional divergence, as the coast of Senegambia developed more quickly than inner areas. This pattern was affected by French early colonialism and by the reaction of different West African populations to the economic incentives provided by foreign demand for agricultural products. The peanut trade since the mid-nineteenth century further amplified regional economic inequalities.