KABUL (AFP) - The Taleban, which is on the brink of total victory in Afghanistan on Sunday (Aug 15), previously governed the country between 1996 and 2001, imposing a strict interpretation of Islamic syariah law before being ousted and launching an insurgency.
Here is some background on the movement:
The Taleban originated among young Afghans who studied in Sunni Islamic schools called madrassas in Pakistan after fleeing Afghanistan during the 1979-1989 Soviet occupation.
They take their name from talib, the Arabic word for student.
In the early 1990s, with Afghanistan in the chaos and corruption of civil war, the Taleban was formed in the southern province of Kandahar under the leadership of one-eyed warrior-cleric Mullah Omar.
Omar, who led it until his death in 2013, was from a stronghold of the powerful Pashtun ethnic group, from which most Taleban fighters come.
Haibatullah Akhundzada is now the top leader, while Taleban co-founder Mullah Baradar heads the political wing.
Dramatic rise to power
Promising to restore order and justice, the Taleban rose dramatically.
It drew substantial support from Pakistan and initially had the tacit approval of the United States.
In 1994, it seized the city of Kandahar almost without a fight.
Equipped with tanks, heavy weapons and the cash to buy the support of local commanders, it steadily moved north, before capturing the capital Kabul on September 27, 1996.
President Burhanuddin Rabbani had already fled.
Taleban fighters dragged former communist president Mohammed Najibullah from a United Nations office, where he had been sheltering, and hanged him in a public street after torturing him.
Reign of terror
The Taleban government imposed the strictest interpretations of syariah, establishing religious police for the suppression of "vice".
Music, television and popular pastimes such as kite-flying were banned. Girls' schools were closed, while women were prevented from working and forced to wear an all-covering burqa in public.
Taleban courts handed out extreme punishments, including chopping off the hands of thieves and stoning to death women accused of adultery.
By 1998, it had control of 80 per cent of the country, but was only recognised as the legal government by Pakistan, the United Arab Emirates, and Saudi Arabia.
In 2001, it blew up 1,500-year-old giant statues of the Buddha in the central Bamiyan valley.
Mullah Omar was based mostly in Kandahar, where he lived in a house reportedly built for him by Osama bin Laden.
The Taleban allowed Afghanistan to become a sanctuary for Al-Qaeda, which set up training camps.
The Sept 11, 2001 attacks that killed around 3,000 people in the US were immediately blamed on Al-Qaeda.
Accusing the Taleban of refusing to hand over Osama, the US and allies launched air strikes on Afghanistan in October.
By early December, the Taleban government had fallen, its leaders fleeing to their strongholds in the south and east, or across the border into Pakistan's tribal zone.
At first written off as a spent force, the Taleban rebuilt to lead an insurgency against the new Western-backed government.
Making heavy use of improvised bombings and suicide attacks, it labelled as "crusaders" the tens of thousands of foreign troops who were deployed to the country as part of a US-dominated Nato force.
The Nato combat mission ended in December 2014 and the bulk of Western forces withdrew.
In July 2015, Pakistan hosted the first direct talks between Afghan and Taleban leaders, with support from China and the US, but they collapsed after Mullah Omar's death was revealed.
The rival Islamic State in Iraq and Syria (ISIS) group emerged in Afghanistan in 2015, launching its own series of devastating attacks, mainly on Kabul.
In 2018, the US and Taleban began discreet talks in Doha that were interrupted several times after attacks against American troops.
A historic deal was signed by the US with the Taleban in Doha on Feb 29, 2020, laying out a timetable for a full American troop withdrawal.
On July 6, 2021, the US military said it had completed 90 per cent of its retreat from Afghanistan.
Five weeks later, the Taleban are on the outskirts of the capital Kabul, and the government has conceded it is preparing for a "transfer of power".