AFTER ENDURING Soviet occupation, civil war and rule by a medieval-minded Islamic militia, millions of Afghans will go to polling stations today for the first free election in their country's history. This is an extraordinary achievement, the more so because it will occur in spite of concerted efforts by the Taliban militia and its al Qaeda allies to prevent it. Thanks in part to U.S., NATO and Afghan forces and in part to the extraordinary determination of Afghan citizens to launch their democracy, the enemy campaign failed: the turnout percentage for the presidential vote may rival that of the U.S. presidential election. Sixteen candidates are challenging the current president, Hamid Karzai, and though he is expected to win, the outcome is neither fixed nor assured. In that respect alone, the Afghan election is unlike any ever held in most of the Muslim world.

Elections, of course, are not panaceas, and it would be wrong to overlook the many ways in which Afghanistan's political and economic reconstruction remains tenuous. Security is still a major problem in southern provinces, where 13 percent of the population lives. There and in the north, warlords have considerably more authority than the central government does. The United States and other Western countries have been inexcusably slow to deploy peacekeeping troops around the country. Most threatening of all may be Afghanistan's opium production, which is booming, fueling corruption and providing warlords, the Taliban and probably al Qaeda with a lucrative source of income.

Yet it also would be foolish to discount the extraordinary advances Afghanistan has made in the past three years. Not only has most of the country enjoyed relative peace during that time, but per capita incomes have doubled, millions of children -- including most girls -- have returned to school, and infant mortality and other health measures have improved. Kabul and other cities are booming, a national road network is under construction and 3 million refugees have returned home. Mr. Karzai recently ousted two of the most powerful warlords from their governmental positions, and about a quarter of the militia members around the country have been demobilized.

Not surprisingly, polls show that Mr. Karzai is supported by most Afghans -- and so is the United States. In a poll sponsored by the Asia Foundation earlier this year, U.S. troops received a favorable rating from 67 percent of the population. A more recent survey by an Afghan human rights coalition showed that 75 percent of voters said they felt free to choose any candidate in the elections, more than 90 percent said all women should vote, and 85 percent believed the election will bring positive change to Afghanistan.

Opponents of the Bush administration both here and abroad often have been loath to acknowledge these positive facts. Sen. John F. Kerry frequently speaks of Afghanistan as if it were just another of Mr. Bush's foreign policy disasters. But Afghanistan's reconstruction should not be a partisan or diplomatic football. Instead U.S. and other Western leaders should be pointing out, to each other and to their publics, that nation-building there can work -- and that it is consequently worthwhile to continue committing troops and aid to the effort.