How did the Mali Empire grow and prosper?

by monopolizing the gold trade and developing the agricultural resources along the Niger River