Background:
The Indus Valley civilization, one of the oldest in the world and dating back at least 5,000 years, spread over much of what is presently Pakistan. During the second millennium B.C., remnants of this culture fused with the migrating Indo-Aryan peoples. The area underwent successive invasions in subsequent centuries from the Persians, Greeks, Scythians, Arabs (who brought Islam), Afghans, and Turks. The Mughal Empire flourished in the 16th and 17th centuries; the British came to dominate the region in the 18th century. The separation in 1947 of British India into the Muslim state of Pakistan (with West and East sections) and largely Hindu India was never satisfactorily resolved, and India and Pakistan fought two wars and a limited conflict - in 1947-48, 1965, and 1999 respectively - over the disputed Kashmir territory. A third war between these countries in 1971 - in which India capitalized on Islamabad's marginalization of Bengalis in Pakistani politics - resulted in East Pakistan becoming the separate nation of Bangladesh.
In response to Indian nuclear weapons testing, Pakistan conducted its own tests in mid-1998. India-Pakistan relations improved in the mid-2000s but have been rocky since the November 2008 Mumbai attacks and have been further strained by attacks in India by militants suspected of being based in Pakistan. Nawaz SHARIF took office as prime minister in 2013, marking the first time in Pakistani history that a democratically elected government completed a full term and transitioned to a successive democratically elected government. In July 2017, the Supreme Court disqualified SHARIF from public office, and Shahid Khaqan ABBASI replaced him as prime minister in August. Pakistan has been engaged in a decades-long armed conflict with militant groups that target government institutions and civilians, including the Tehrik-e-Taliban Pakistan (TTP) and other militant networks.