The Delhi Sultanate are the various Muslim dynasties that ruled in northern India from 1210–1526. It was founded after Muslim Muhammad of Ghor defeated Indian Prithvi Raj and captured Delhi in 1192. In 1206, Qutb ud-Din, one of his generals, proclaimed himself sultan of Delhi and founded a line of rulers called the Slave dynasty, because he and several of the sultans who claimed succession from him were originally military slaves. Ended in 1290, and began succession of Muslim empires: Khalji dynasty (1290–1320), then the Mughul empire, at which the sultanate was at its greatest; the Tughluq dynasty (1325–98), which spread Muslim infl. to even south India, but provoked revolts, notably by Hindu Vijayanagar kingdom in the south and led to loss of Muslim territory. Hindu south recovered its independence, Tughluq ended and Bahmani kingdom emerged. After Tughluq, the sultanate began to disintegrate into several small states. Began with the sack of Delhi by Timur in 1398, some although local rulers stayed at Delhi until the invasion of Babur and the Mughal conquest.