The United States is withdrawing troops from Afghanistan having lost its battle against the country's narcotics industry, marking one of the starkest failures of the 2009 strategy the Obama administration pursued in an effort to turn around the war.

Despite a U.S. investment of nearly $7 billion since 2002 to combat it, the country's opium market is booming, propelled by steady demand and an insurgency that has assumed an increasingly hands-on role in the trade, according to law enforcement officials and counternarcotics experts. As the war economy contracts, opium poppies, which are processed into heroin, are poised to play an ever larger role in the country's economy and politics, undercutting two key U.S. goals: fighting corruption and weakening the link between the insurgency and the drug trade.

The Afghan Army opted this spring for the first time in several years not to provide security to eradication teams in key regions, forgoing a dangerous mission that has long embittered rural Afghans who depend on the crop for their livelihoods.