During the pre-Islamic period, the area was inhabited by various tribes who practiced different religions such as Buddhism and Hinduism.[citation needed] Arab Muslims introduced Islam to Ghazni in the 7th century, they were followed by the 9th century Islamic conquest of the Saffarids from Zarang in the west.