Muslim traders from Arabia, Persia and India settled along the East African coast from the 8th century. Swahili city-states such as Lamu, Mombasa, Malindi and Kilwa grew. Islam spread through trade, intermarriage and teaching. Swahili language, architecture and culture were influenced by Islam. Later Islam spread inland along trade routes.