Kilwa had seized the port of Sofala, which was a trading center for gold mined inland. By controlling Sofala, Kilwa was able to con- trol the overseas trade of gold from southern Africa. As a result, Kilwa became the wealthiest, most powerful coastal city-state.