Deobandi is a revivalist movement within Sunni Islam, adhering to the Hanafi school of law, formed in the late 19th century around the Darul Uloom Madrassa in Deoband, India, from which the name derives, by Muhammad Qasim Nanautavi, Rashid Ahmad Gangohi, and several others, after the Indian Rebellion of 1857–58. The movement pioneered education in religious sciences through the Dars-i-Nizami associated with the Lucknow-based ulema of Firangi Mahal with the goal of preserving Islamic teachings under colonial rule. The Deobandi movement's political wing, Jamiat Ulema-e-Hind, was founded in 1919 and played a major role in the Indian independence movement through its propagation of the doctrine of composite nationalism.Theologically, the Deobandis uphold the doctrine of taqlid (conformity to legal precedent) and adhere to the Hanafi school.