City-states in East Africa were independent, self-governing urban centers that played a significant role in trade, culture, and political organization from the 12th to the 15th century. They were often coastal cities like Kilwa, Mombasa, and Zanzibar, which thrived due to their strategic positions along trade routes across the Indian Ocean, fostering connections between Africa, the Middle East, and Asia.