Before the early modern period, there was a vibrant slave trade in East Africa, and large numbers of slaves were transported across the Sahara to the Arabian Peninsula. Moreover, the large medieval West African states of Mali, Ghana, and Songhai made heavy use of slaves in the government, the army, and agriculture, adopting organizational models from the Muslim North African states with whom they traded.