A ceasefire agreement between Islamabad and Kabul rests on the ruling Afghan Taliban's ability to rein in militants attacking Pakistan across their shared border, Pakistan's Defense Minister Khawaja Muhammad Asif said on Monday, underscoring the fragility of the accord.

The South Asian neighbors agreed to a ceasefire in Doha over the weekend after days of border clashes that killed dozens, the worst such violence since the Taliban seized power in Kabul in 2021.

Ground fighting between the one-time allies and Pakistani airstrikes across their contested 2,600-kilometer frontier were triggered after Islamabad demanded that Kabul control militants, saying they operated from havens in Afghanistan.