The Afridis and their allies Khalils were first mentioned in the memoirs of Mughal Emperor Babar as violent tribes in need of subduing. The Afridi tribes controlled the Khyber Pass, which has served as a corridor connecting the Indian subcontinent with Afghanistan and Central Asia. Its strategic value was not lost on the Mughals to whom the Afridis were implacably hostile.