Khyber Pakhtunkhwa, commonly abbreviated KP or KPK and formerly known as the North-West Frontier Province (NWFP), is a province of Pakistan. Located in the northwestern region of the country, Khyber Pakhtunkhwa is the fourth largest province of Pakistan by land area and the third-largest province by population. It is bordered by Balochistan to the south; Punjab, Islamabad Capital Territory, and Azad Kashmir to the east; and Gilgit-Baltistan to the north and northeast. It shares an international border with Afghanistan to the west. Khyber Pakhtunkhwa has a varied geography of rugged mountain ranges, valleys, rolling foothills, and dense agricultural farms.
The history of the present province of Khyber Pakhtunkhwa is characterized by frequent invasions by various empires, largely due to its geographical proximity to the historically important Khyber Pass. It was the site of the ancient Gandhara, and was historically a stronghold of Buddhism. Islam became dominant in the region after the 11th-century conquest of the Hindu Shahi kingdom by the Ghaznavids. The predecessor of the present province was constituted in 1901, under the British Raj, when the North-West Frontier Province was created by bifurcating the northwestern districts of the erstwhile Punjab Province.