 In one of them, Abdur Rahman bin Samana arrived to Kabul from Zaranj in the late 600s and converted 12,000 inhabitants to Islam before abandoning the city.Muslims were a minority until Ya'qub bin Laith as-Saffar of Zaranj conquered Kabul in 870 and established the first Islamic dynasty in the region.It was reported that the rulers of Kabul were Muslims with non-Muslims living close by.