It was reported that the rulers of Kabul were Muslims with non-Muslims living close by.Over the following centuries, the city was successively controlled by the Samanids, Ghaznavids, Ghurids, Khwarazmshahs, Qarlughids, and Khaljis.
Report of a massacre in the close by Bamiyan is recorded around this period, where the entire population of the valley was annihilated by the Mongol troops as a revenge for the death of Genghis Khan's grandson.
Babur began his 1526 conquest from Kabul of the Indian Subcontinent, which was ruled by the Afghan Lodi dynasty and began east of the Indus River in what is present-day Pakistan.
Babur loved Kabul due to the fact that he lived in it for 20 years and the people were loyal to him, including its weather that he was used to.
As a result, many natives of Afghanistan fled south toward the Indian subcontinent where some established dynasties in Delhi.
The Chagatai Khanate and Kartids were vassals of Ilkhanate till dissolution of latter in 1335.