How did Mali become powerful?

mali was located along the Niger river which allowed the mila people to control trade along the river