The former have supplied the leadership and foot soldiers to the Pakistani Taliban and the latter has fought, often with devastating effect, against the government in Kabul and American and NATO troops. Both groups aim to replace their countries’ governments with an Islamic caliphate, based on what they interpret as the tenets of Islam.