The empire grew rich from the trans-Saharan trade in gold and salt. This trade produced an increasing surplus, allowing for larger urban centers. It also encouraged territorial expansion to gain control over the lucrative trade routes. Hope this answers the question.