From the 7th century, dynasties such as the Chalukyas and Pallavas in the south and the Pratiharas and Palas in the north competed for power, and great stone temples were built. The Cholas, from the delta of the Kaveri, built the strongest empire of the south; Rajaraja I (Chola emperor) completed the Brihadisvara temple at Thanjavur in 1010, and his son Rajendra I (Chola emperor who sent fleets abroad) sent a fleet against the kingdom of Srivijaya in Southeast Asia.

Islam reached India early, with Arab traders on the west coast and an Arab conquest of Sindh in 711. From around 1000, Mahmud of Ghazni (Afghan raider of northern India), from Afghanistan, raided northern India again and again, and in 1025 he sacked the temple of Somnath. In 1192 Muhammad of Ghor (conqueror of northern India) defeated the Rajput king Prithviraj Chauhan at Tarain, and in 1206 his general Qutb ud-Din Aibak (first sultan of Delhi) founded the Delhi Sultanate.

Five dynasties ruled the sultanate from Delhi. Alauddin Khalji (sultan who beat back the Mongols) beat back Mongol invasions around 1300, and Muhammad bin Tughluq (sultan of bold schemes) tried bold schemes, such as moving the capital to Daulatabad in the Deccan and issuing token coins, which failed. In 1398 Timur (Central Asian conqueror), a Turkic conqueror from Central Asia, sacked Delhi.

In the south the Vijayanagara empire, founded in 1336, fought the Bahmani sultans of the Deccan, and its capital at Hampi astonished foreign visitors. Sufi saints and bhakti poets such as Kabir (weaver and poet-saint), who sang of a God beyond the divisions of Hindu and Muslim, reached ordinary people. Guru Nanak (founder of the Sikh faith), born in 1469, founded the Sikh faith in the Punjab.