In general, the chief way that European slave traders obtained slaves from Africa was by:
purchasing them on the west African coast from African traders or
middlemen
purchasing large numbers of people in the famous Swahili coast slave markets in cities
like Mombasa and Kilwa
by raiding the African interior and taking captives
tricking them into signing contracts as indentured servants