KABUL: The United States descended on Afghanistan and its Taliban government in 2001 in the wake of the September 11 attacks by Al-Qaeda, which had sought sanctuary in the country.
After 20 years of war, the last American troops in the US-led NATO coalition flew out of Afghanistan shortly after midnight Tuesday morning.
Here is a timeline of key events:
On October 7, 2001 -- less than a month after the September 11 attacks that killed around 3,000 people in the US -- President George W. Bush launches "Operation Enduring Freedom" in Afghanistan.
The ruling Taliban had been sheltering Osama bin Laden and his Al-Qaeda movement, which carried out the 9/11 attacks.
The operation opens a military front in the US "war on terror" and within weeks, US-led forces overthrow the Taliban, in power since 1996.
About 1,300 American soldiers are on the ground by November 2001, rising to almost 10,000 the next year.
American attention is diverted from Afghanistan when US forces invade Iraq in March 2003, to oust dictator Saddam Hussein.
The fragmented Taliban and other outfits regroup in their strongholds in southern and eastern Afghanistan, from where they travel between their bases in neighbouring Pakistan's tribal areas, and launch an insurgency.
In 2008, the US command in Afghanistan calls for more manpower.
Bush sends additional soldiers, bringing the total to 48,500 US troops deployed.
In 2009, Barack Obama -- elected president after a campaign that promised to end the Iraq and Afghanistan wars -- boosts the US presence to around 68,000. In December, he sends another 30,000 troops.
The objective is to stymie the growing Taliban insurgency and strengthen Afghan institutions.
By 2010 about 150,000 foreign soldiers are deployed in Afghanistan, of which 100,000 are American.
Osama bin Laden is killed on May 2, 2011 in a US special forces operation in Pakistan.
The NATO alliance ends its combat mission in Afghanistan in 2014, but around 12,500 foreign soldiers -- of which 9,800 are American -- remain to train Afghan troops and conduct anti-terrorist operations.
Amid a spreading Taliban insurgency, security in the country deteriorates and a branch of the Islamic State (IS) group also becomes active in 2015.
President Donald Trump scraps any timetables for a US pullout, and re-commits thousands more soldiers in August 2017.
But deadly attacks multiply, especially against Afghan forces and the US dramatically steps up air strikes.
In 2018, Washington and Taliban representatives discreetly open talks in Doha focused on slashing the American military footprint in Afghanistan.
In return, Washington demands that the Taliban prevent the country from being used as a haven for jihadist groups.
On February 29, 2020 the US and Taliban sign a historic deal paving the way for the withdrawal of all foreign forces from Afghanistan by May 2021.
The insurgents in return offer some security guarantees, and agree to hold peace talks with the Afghan government.
Those begin in September, but violence surges and the Taliban are blamed for a wave of targeted killings against high-profile activists, politicians, journalists and working women.
Troop numbers by the end of Trump's presidency in January 2021 fall to 2,500 as support for military action wanes.
At the end of April NATO begins a concurrent withdrawal of its mission involving 9,600 soldiers.
President Joe Biden says he will stick to the agreement with the Taliban, but delays the drawdown deadline until September 11.
Officials on June 2 announced the departure of all US and NATO troops from Bagram, Afghanistan's biggest airbase.
Biden on July 8 says the US retreat will be completed on August 31.
The next day the Taliban say they control 85 per cent of Afghan territory, a claim disputed by the government.
On August 15, the Taliban swept into Kabul, with tens of thousands of Afghans and foreigners rushing to the airport in a desperate bid to scramble onto evacuation flights.
More than 123,000 people are airlifted out of Kabul.
Just hours before the August 31 deadline, the last of the thousands of American troops fly out.
"We just don’t know really very much at all about the actual policy," says head of US central bank
Trump urged lawmakers to tie up loose ends before he takes office, but Republicans refused to support package
Some members of Congress suggest that Elon Musk should take over as House speaker
Chen Jinping and Lu Jianwang opened outpost in Manhattan's Chinatown in early 2022, say prosecutors
Vladimir Putin says Russia ready for "negotiations and compromises"
Egyptian Ministry of Tourism and Antiquities says human remains date to Ptolemaic period