The Delhi Sultanate or the Sultanate of Delhi was a late medieval empire primarily based in Delhi that stretched over large parts of the Indian subcontinent for more than three centuries. The sultanate was established in 1206 in the former Ghurid territories in India. The sultanate's history is generally divided into five periods: Mamluk (1206–1290), Khalji (1290–1320), Tughlaq (1320–1414), Sayyid (1414–1451), and Lodi (1451–1526). It covered large swaths of territory in modern-day India, Pakistan, Bangladesh, as well as some parts of southern Nepal.
The foundation of the Sultanate was established by the Ghurid conqueror Muhammad Ghori, who routed the Rajput Confederacy, led by Ajmer ruler Prithviraj Chauhan, in 1192 near Tarain in a reversal of an earlier battle. As a successor to the Ghurid dynasty, the Delhi Sultanate was originally one of several principalities ruled by the Turkic slave-generals of Muhammad Ghori, including Taj al-Din Yildiz, Qutb ud-Din Aibak, Bahauddin Tughril and Nasir ad-Din Qabacha, that had inherited and divided the Ghurid territories amongst themselves. Khalji and Tughlaq rule ushered a new wave of rapid and continual Muslim conquests deep into South India. The sultanate finally reached the peak of its geographical reach during the Tughlaq dynasty, occupying most of the Indian subcontinent under Muhammad bin Tughluq. A major political transformation occurred across North India, triggered by the Central Asian king Timur's devastating raid on Delhi in 1398, followed soon afterwards by the re-emergence of rival Hindu powers such as Vijayanagara Empire and Kingdom of Mewar asserting independence, and new Muslim sultanates such as the Bengal and Bahmani Sultanates breaking off. In 1526, Timurid ruler Babur invaded northern India and conquered the Sultanate, leading to its succession by the Mughal Empire.