After 9/11 incident, when the global scenario changed and US was committed to invade Afghanistan, it aggressively sought Pakistan's cooperation to invade Afghanistan as it strategically viewed only Pakistan for making its way into Afghanistan.
This dangerous scenario pressed Pakistan in a critical situation where a decision had to be made. After analyzing the insensitive condition of the Muslim world and the military cooperation keenly offered by India to US, there was no other option but to strategically give in to some demands of the world superpower while at the same time protecting the vital national interests. Pakistan made a decision to side with the international coalition on a conditional basis. This decision was viewed by hard-core religious elements in the region as an act of betrayal with Islam and they termed Pakistan as allies of infidels thus labeling it as an apostate state. Instead of focusing on the invaders, these hard-core religious groups directed all their anger against Pakistan making `takfir` and called for waging a holy war or Jihad against Pakistan.
These extremist religious groups started a campaign of bloodbath across the
country targeting military and civilians. With no end of these ruthless
activities in sight, Pakistan military along with public support started a
decisive campaign to wipe out these ruthless Kharijis-Takfiris from the land of
pure.