The Deobandi movement or Deobandism is a revivalist movement within Sunni Islam that adheres to the Hanafi school of law. It 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. They opposed influence of non-Muslim cultures on the Muslim of South Asia. The movement pioneered education in religious sciences through the Dars-i-Nizami associated with the Lucknow-based ulama of Firangi Mahal with the goal of preserving traditional Islamic teachings from the influx of modernist, secular ideas during British colonial rule. The Deobandi movement's Indian clerical wing, Jamiat Ulema-e-Hind, was founded in 1919 and played a major role in the Indian independence movement through its participation in the Pan-Islamist Khilafat movement and propagation of the doctrine of composite nationalism.