How in the ruler of Ghana came wealthy

The ruler of Ghana became wealthy through various means such as controlling trade routes, taxing traders and merchants, exploiting natural resources, and engaging in conquest and warfare to expand their territory and gain tribute from conquered peoples. They also established strong diplomatic and trade relationships with other neighboring kingdoms and empires, enabling them to accumulate wealth through the exchange of goods and commodities. Additionally, the ruler of Ghana may have utilized their position of power and influence to accumulate personal wealth through gifts, bribes, and tribute from their subjects.