History
The Peshawar valley was the heart of ancient Gandhara. Its city, known as Purushapura, was a capital of the Kushan emperor Kanishka, whose great stupa stood outside it, and the monasteries of Takht-i-Bahi and the Swat valley produced the Greco-Buddhist sculpture that blended Hellenistic and Indian styles. The Khyber Pass made the valley a highway for invaders from Central Asia, from Mahmud of Ghazni to Babur, the founder of the Mughal dynasty.
The Pashtun tribes of the hills were never fully ruled by anyone. The Mughals held Peshawar, the Durrani Afghans took it in the 18th century, the Sikhs seized it in the 1830s, and the British annexed it in 1849. In 1901 they created the North-West Frontier Province, leaving the tribal agencies along the new Durand Line border with Afghanistan to their own customary law. Swat and Chitral remained princely states until 1969. In the 1930s Abdul Ghaffar Khan, known as Bacha Khan, led the non-violent Khudai Khidmatgar movement against British rule.
From 1979 the Soviet war in Afghanistan sent millions of refugees to Peshawar, which became a base for the mujahideen. After 2001 the tribal areas became a refuge for Afghan and Pakistani militants, and the Pakistani Taliban took control of Swat in 2007–2009 until an army offensive drove them out; in 2012 they shot the schoolgirl Malala Yousafzai in Swat. In 2014 militants attacked the Army Public School in Peshawar, killing more than 140 people, most of them children. The province was renamed Khyber Pakhtunkhwa in 2010, and the tribal areas were merged into it in 2018.
