In 1206 Qutb al-Din Aibak, Afghan viceroy of the Ghurid realm, made himself sultan of Delhi; five dynasties followed - Slave (1206-1290), Khalji (1290-1320), Tughlaq (1320-1414), Sayyid (1414-1451) and Lodi (1451-1526). Ala al-Din Khalji beat back the Mongol invasions and centralized the taxes; Muhammad bin Tughlaq's capital-moves and southern campaigns spent the realm, and after Timur sacked Delhi (1398) the provinces went free (Bengal, the Bahmanis and Vijayanagara in the Deccan rising together). The sultanate brought Islamic statecraft and Persian letters into India; Hindi and Sufism spread, the Qutb Minar (from 1199) and the Deccan's Indo-Islamic architecture opened their arts; in 1526 at Panipat Ibrahim Lodi fell to Babur, and the Delhi Sultanate ended.