Twice in the last quarter century the United States has squandered great victories achieved in Afghanistan by failing to follow up battlefield success with an enduring and resourced commitment to helping to build a stable government in Afghanistan. Both times the cost of taking our eye of the ball in Afghanistan had been high. It is imperative not to make the same mistake a third time or the cost will again be painful, and we probably won’t get a fourth opportunity.

In the late 1980s, after the largest covert action operation in the nations’ history, U.S.-supported Afghan mujahedin defeated the Soviet 40th Red Army. Next the Soviet Union itself collapsed. The mujahedin were badly divided, however, and quickly fell into civil war. The United States could have led an international effort to restore order and rallied key players like Pakistan and Saudi Arabia to try to end the conflict. Instead, Afghanistan got virtually no attention from the White House or the Congress. By the late 1990s, the radical Taliban movement had taken power and was hosting the even more radical Al Qaeda terrorist group that attacked America, first in 1998, then in 2000 and finally on September 11, 2001.

In late 2001, the CIA led a campaign to topple the Taliban with the support of the Northern Alliance, the Taliban’s foe inside Afghanistan. Again the results were spectacular and came quickly. By early 2002 the Taliban were routed, Al Qaeda was on the run and the two were retreating into Pakistan. A concerted effort in 2002 and 2003 probably would have destroyed Al Qaeda and developed an Afghan state that could exercise its control over the Pashtun belt in the south where the Taliban are strongest. Instead, U.S. resources and attention shifted to Iraq and the Afghans got marginal support from the United States. By 2006, the Taliban had come back. Yet American resources continued to surge toward Iraq and the Taliban comeback accelerated. By the end of 2008 they had become increasingly confident and controlled much of the rural countryside in the southern part of the country where Pashtuns are a majority.

Today the war is being lost in Afghanistan, but it is not yet lost. President Obama has decided to send the resources to the war to break the momentum of the Taliban. He is right to do so.

If the Taliban consolidate their position in southern and eastern Afghanistan it is certain they will again give Al Qaeda safe haven to plot against America, expanding the sanctuary they already have in Pakistan. There is no reason to believe Mullah Omar has broken with Osama bin Laden since 2001. Many have asked him to, including the Saudis last year, with no result. Indeed his rhetoric since 2001 has increasingly been that of a global jihadist, placing the Afghan Taliban struggle inside the global fight against NATO’s ‘Crusader’ armies. If Omar did not break with Al Qaeda in 2001 after 9/11, when the survival of his Islamic Emirate was at stake, it is far less likely he will break when he senses our will is broken in Afghanistan. His goals are to drive us out and impose the medieval hell he built in the 1990s back on the Afghan people.

Even more devastating would be the impact in neighboring Pakistan. A victory for the Afghan Taliban would encourage its new partners, the Pakistan Taliban, in their struggle to take over the world’s second largest Muslim country. This February several Pakistani Taliban leaders united their forces and proclaimed their allegiance both to Omar and bin Laden. Already on the march in Pakistan from the tribal frontiers to inside major cities like Karachi, a Pakistani Taliban further invigorated by its partner’s success across the Durand Line would be well positioned to take over much of the country. The Pakistani army would probably make a deal, as it already has in the Swat district. Al Qaeda’s room for maneuver would be even greater and it might well get its hands on the world’s fastest growing nuclear arsenal.

The entire Muslim world also has a stake in Afghanistan’s future. Jihadist terrorists, from Algeria to Indonesia and from Uzbekistan to Somalia, have been trained in Afghanistan in the past and will be again if the Taliban and Al Qaeda triumph. Saudi Arabia and the United Arab Emirates have a special interest: they, like Pakistan, have longstanding ties to the Taliban. The United States should urge Riyadh to do more to help the Kabul government. The United Arab Emirates has taken the bold decision to send troops to fight as part of ISAF. Other Muslim states should do the same or contribute to the fund for building the Afghan army and police. As we finally resource the struggle in Afghanistan properly after years of neglect we should press our Muslim friends to do the same: it’s their war, too.

Ignoring Afghanistan has cost our country a great deal. Now is the time to help the Afghan people, the vast majority of whom do not want the Taliban back, to build a national security force that can protect them. We cannot afford to make the same mistake three times.