section_path: History/Islamic conquest
section_name: Islamic conquest
paragraph_text: Islamic conquest
  
  The Arab conqueror Muhammad ibn Qasim conquered Sindh and some regions of Punjab in 711 CE. The Pakistan government's official chronology claims this as the time when the foundation of Pakistan was laid. The Early Medieval period (642–1219 CE) witnessed the spread of Islam in the region. Before the arrival of Islam beginning in the 8th century, the region of Pakistan was home to a diverse plethora of faiths, including Hinduism, Buddhism, Jainism and Zoroastrianism. During this period, Sufi missionaries played a pivotal role in converting a majority of the regional population to Islam. Upon the defeat of the Turk and Hindu Shahi dynasties which governed the Kabul Valley, Gandhara (present-day Khyber Pakhtunkwa), and western Punjab in the 7th to 11th centuries CE, several successive Muslim empires ruled over the region, including the Ghaznavid Empire (975–1187 CE), the Ghorid Kingdom, and the Delhi Sultanate (1206–1526 CE). The Lodi dynasty, the last of the Delhi Sultanate, was replaced by the Mughal Empire (1526–1857 CE).
  
  The Mughals introduced Persian literature and high culture, establishing the roots of Indo-Persian culture in the region. In the region of modern-day Pakistan, key cities during the Mughal period were Multan, Lahore, Peshawar and Thatta, which were chosen as the site of impressive Mughal buildings. In the early 16th century, the region remained under the Mughal Empire. In the 18th century, the slow disintegration of the Mughal Empire was hastened by the emergence of the rival powers of the Maratha Confederacy and later the Sikh Empire, as well as invasions by Nader Shah from Iran in 1739 and the Durrani Empire of Afghanistan in 1759. The growing political power of the British in Bengal had not yet reached the territories of modern Pakistan.