The Khalil (Pashto: خليل) is a Pashtun tribe which is said to have descended from a son of Ghoryakhel. They primarily live in the Peshawar valley of Pakistan with a minority inhabiting the Nangarhar, Herat, Ghazni, and Qandahar provinces of Afghanistan. The Khalils settled to the west and south-west of Daudzai tribe. GhoryaKhel settled around Peshawar and the dividing center between the Khalil and Mohmand area is the first village Sheikhan after the Bara stream to the eastwords claimed both by the Khalil and Mohmand. There are eight main sub-division in the Khalil tribe.
Ghoryakhel had four sons Daulatyar, Zeerani, Khalil, Chamkani tribe, and Daulatyar had two sons Momand, Daudzai. The Khalil originally lived in Ghwara Marghay Arghistan Qandahar Afghanistan and in the Qalat Zabul and Ghazni. Khalil Mattezai still living on the basin of the Tarnak River north of Ghazni and Sheikh Matte BaBa Shrine is close to Tarnak River on the Hill. After the Mongols invaded the region in the 13th century, the Khalils, along with the Momands who were also formerly settled in central Afghanistan, were driven out. The Khalil first migrated northeastwards to Kabul and then to Nangrahar further eastwards along the Kabul River. The Khalil came in 1530-1535 from Nangrahar to their present settlement in the Peshawar valley according to the Babur history book Baburnama and Pashto History Book Pata Khazana written by Abdulhai Habibi.