The Pakistani government provided help and shelter to the Taliban for many years, while denying it was doing so. The militants' takeover of Afghanistan therefore represents a victory for Islamabad, but one that is fraught with risk.
The Taliban have been fighting the Afghan government and its allies for decades.
Now the United States is pulling its soldiers out of Afghanistan, and the Taliban seem stronger than ever.
It started with an explosion. Then there was second big explosion. Then two more explosions. There was an hour of gunfire.
There were grenades. It was going, stopping. Kalashnikovs. Starting again.

After being unable to save two hostages held by Middle Eastern extremists, Prime Minister Shinzo Abe said constitutional change will be needed to protect the lives and assets of Japanese citizens.
Abe has said at times that with the current interpretation of Article 9, which forbids both the use of force to settle international disputes and the maintenance of regular armed forces, it is difficult to protect Japanese citizens in a changing security environment.
“The Liberal Democratic Party has already presented a draft amendment to Article 9, and amending it is to carry out our duty of protecting the lives and assets of Japanese citizens,” Abe told the Upper House Budget Committee on Tuesday.Yet, Japan doesn't have the military wherewithal to carryout any military operation which could lead to, if any Japanese hostages.
Given the nature of Japanese politics the probability is high he'll get his wish as public sentiment concerning these changes in policy and the constitution will be ignored.Sunday's announcement of the killing of Kenji Goto, the second of two Japanese hostages captured by Islamic State (IS) militants, represents a major political challenge for the Japanese administration of Prime Minister Shinzo Abe.It also raises important questions about the future security of Japanese citizens at home and abroad, the degree of Japanese public support for the country's increasingly proactive foreign policy, and the prospects in 2015 for government legislation to allow Japan's Self-Defence Forces (SDF) to play a more active overseas role.
While there was widespread shock at the two deaths, Japanese public reaction to the hostage crisis in general has been mixed.
Many Japanese responded to the humanitarian dimension of the crisis, using social media to express their solidarity with the victims and their families.
"In 1994, with the failure of [Gulbuddin Hekmatyar's alliance] attempt to oust [the Afghan] Rabbani [administration], Pakistan found itself in an awkward position. Hekmatyar had proved incapable of seizing and controlling defended territory: in this respect he was a bitter disappointment to his patrons. ... In October 1994, [Pakistani interior minister] Babar [took] a group of Western ambassadors (including the US Ambassador to Pakistan John C. Monjo) to Kandahar, without even bothering to inform the Kabul government, even though it manned an embassy in Islamabad. ... On 29 October 1994, a convoy of trucks, including a notorious ISI officer, Sultan Amir ... and two figures who were later to become prominent Taliban leaders, entered Afghanistan."[9]Following the attacks of 11 September 2001 Pakistan's government claimed they were no longer providing logistical, military training or funding to the Taliban. It just wasn't true.
Thus when stories spread of Pakistani military barbarity in the campaign against the Taliban in Pakistan – reports which included the execution of Taliban prisoners in Waziristan, whose bodies were left to lie upon the roads to be eaten by animals – the more certain became the revenge of the Taliban. The children of the military officers, educated at the army school just down the road from the famous Edwardes College in Peshawar – were the softest and most obvious of targets. For many years, the ISI and the Pakistani army helped to fund and arm the mujahedin and then the Taliban in Afghanistan.
For years, the Pakistani authorities have insisted that the old loyalties of individual military and security police officers to the Taliban have been broken – and that the Pakistani military forces are now fully dedicated to what the Americans used to call the “war on terror”.