The Mali Empire grew during the early Middle Ages and replaced Ghana as the dominant kingdom in west Africa, dominating Senegal, Gambia, Guinea, and Mauritania. In the 14th century, the Mali Empire became increasingly wealthy because of the trade of cotton, gold and salt. This was eventually succeeded by the Songhai Empire.