Travellers and merchants from the Persian Gulf and India have visited the east African coast since early in the first millennium AD. Islam was practised by some on the Swahili Coast as early as the eighth or ninth century A.D.