Kandahar was founded in the 4th century BC by Alexander the Great, near the site of the ancient city of Mundigak (established around 3000 BC).
The city has been a frequent target for conquest due to its strategic location in central Asia.
It was conquered by Arabs (7th century), Turkic Ghaznavids (10th century), Genghiz Khan (12th century), and Timur (1383).
Babur, founder of the Mughal empire, took Kandahar in the 16th century.
It fell into truly Afghan hands in 1708 when Mir Wais conquered the town.
He died in 1715 and from 1738-1747 the city was temporarily in the hands of Nadir Shah.
Ahmad Shah Durrani, the founder of Afghanistan, took the city in 1747 and made it the capital (1748) of his new kingdom.
The (now) old city was laid out by Ahmad Shah and is dominated by his mausoleum.
In the 1780s however the capital was transferred to Kabul.
Qandahar has always been a centre of Jihaad and Mujahedin. On 28th Muharram 1242 Hijri (2nd September 1826 C.E) Syed Ahmad Shaheed's forces reached Qandahar enroute to Peshawar. Their purpose was to make Jihaad against the oppressive Sikh regime of Ranjit Singh, within a few days more than 400 Qandaharis presented themselves for Jihaad out of whom 270 were selected. Syed Deen Muhammad Qandahari was appointed their leader.
During the Soviet occupation of 1979-1989, Kandahar was firmly under Soviet command. Following the Soviet withdrawal it changed hands several times. It was towards the end of 1994 that the Taliban emerged from the city and set out to conquer the south, east and centre of the country; the city is still the 'spiritual' home of the movement.