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. 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 the countries continue to spar over the disputed Kashmir territory.
https://www.cia.gov/the-world-factbook/countries/pakistan/summaries