Khyber Agency is among Pakistan's seven semi-autonomous tribal districts near the Afghan border, rife with homegrown insurgents and foreign militants. Terrorist organisations including Al Qaeda also have a presence there.

The region has been long fought over by a mix of militant organisations, including the Tehrik-i-Taliban Pakistan (TTP), the Ansarul Islam and Mangal Bagh's Lashkar-e-Islam.