The resignation of Rahmatullah Nabil on Thursday highlights the domestic backlash Ghani faces over his attempts to repair strained relations with Pakistan, long blamed for nurturing the Taliban.
Ghani has staked considerable political capital in advocating bonhomie with the neighbour, saying it was a necessary partner in restarting peace talks aimed at ending Afghanistan's long war.
Army chief assures Ashraf Ghani support for peace in Afghanistan
"Without positive support from Pakistan, won't the war in Afghanistan keep dragging on? You answer me," Ghani told a press conference on Friday.
"If one of the main sources of instability in Afghanistan is our neighbour... then there is a comprehensive need to work together to end this fighting."
Nabil resigned a day after he posted a scathing Facebook post criticising Ghani's recent high-profile visit to Pakistan for a conference that shored up international support for Taliban talks.
Afghan president receives unexpected welcome in Pakistan
"Our innocent countrymen were being martyred and beheaded in Kandahar airfield... at the moment when (Pakistan) Prime Minister Nawaz Sharif once again said Afghanistan's enemy is Pakistan's enemy," he wrote.
He was referring to a 27-hour Taliban siege this week of Kandahar airport, the largest military installation in southern Afghanistan, which killed at least 50 people.
Nabil's resignation comes as Afghanistan's security establishment, already without a full-time defence minister, is struggling to rein in the ascendant insurgency.
At the Islamabad conference, Ghani and Pakistani Prime Minister Nawaz Sharif vowed commitment to the peace process, with the United States and China also offering support.
Afghan spy chief quits over ‘differences’ with Ashraf Ghani
Pakistan, which wields considerable influence over the Taliban, hosted a milestone first round of peace negotiations in July.
But the talks stalled when the Taliban belatedly confirmed the death of longtime leader Mullah Omar, sparking a power struggle within the movement.
Foreign ministry issued a statement Friday saying it hoped consultation on the talks would begin "soon".
Ghani voiced optimism that the negotiations would resume in the coming weeks, saying Afghanistan was "thirsty for peace and stability".
COMMENTS (9)
Comments are moderated and generally will be posted if they are on-topic and not abusive.
For more information, please see our Comments FAQ