Former Soviet leader Mikhail Gorbachev who ended the U.S.S.R.'s decade-long war in Afghanistan in 1989, on Tuesday warned against repeating the mistakes of the U.S. invasion of the country.
"From the very start (the U.S. invasion) was a bad idea, although Russia initially supported it," Gorbachev told the RIA Novosti news agency.
"Failure should have been admitted earlier," 90-year-old Gorbachev said.
"Now it is important to learn from the situation and at least not repeat such mistakes," he added.
Taliban militants on Sunday completed a military takeover of Afghanistan with little resistance, capitalizing on the withdrawal of U.S.-led troops from the country.
The U.S. military had been present in Afghanistan since 2001 when it invaded following the Taliban's refusal to hand over Al-Qaeda's leader Osama bin Laden in the wake of the Sept. 11 attacks.
The Soviet Union had also invaded Afghanistan in 1979 to support an Afghan communist government that was in conflict with Muslim guerrilla fighters.
Shortly after coming to power in 1985, Gorbachev decided to end the Soviet presence in Afghanistan.
Moscow's decade-long war in Afghanistan killed up to 2 million Afghans, forced 7 million more from their homes, and led to the deaths of more than 14,000 Soviet troops.
Fighters from the anti-Soviet Mujahideen helped found the Taliban in the early 1990s.