The wealth of East Africa, cities states was based on

a combination of trade, agriculture, and resource extraction. East African city-states like Kilwa, Mombasa, and Zanzibar served as important trading hubs, connecting the interior of Africa with the Indian Ocean trade network. These city-states thrived on the trade of gold, ivory, slaves, and other commodities.

Additionally, agriculture played a significant role in the wealth of East African city-states. The rich soil and favorable climate of the region allowed for the cultivation of crops such as grains, fruits, and vegetables, which provided a steady source of income and sustenance for the population.

Resource extraction also contributed to the wealth of East African city-states, with valuable resources like salt, copper, and iron being mined and traded with other regions. The control and management of these resources allowed the city-states to accrue wealth and power.

Overall, the wealth of East African city-states was built on a diverse economic base that included trade, agriculture, and resource extraction, allowing them to prosper and flourish during their peak in the 13th to 15th centuries.