What made Mali such a powerful state in the 1300's?

It was a major center of Islamic instruction and possessed large deposits of gold and metal ore.