The TTP also established an Islamist government in South Waziristan, one of the tribal agencies on Pakistan’s border with Afghanistan. Pakistan’s military later succeeded in expelling the TTP from both areas, but not without a great many casualties.