From the sixteenth to the eighteenth century, the Mughal Empire did much to create modern-day India. It consolidated the country into a sovereign political unit, established a secular tradition in law and administration, and built monuments such as the Taj Mahal. The Mughals were originally from Uzbekistan, but over time they became a symbol of the contribution of Muslims to Indian national history. Their lasting influence is evident in some of India’s most famous dishes, such as biryani, and the settings of several of the most beloved Bollywood movies, including Mughal-e-Azam (1960), by some estimates the highest-grossing film in Indian history.

So it was odd, on a visit this spring to a school in the Indian state of Rajasthan, to hear a Muslim teacher, Sana Khan, ask her entirely Muslim eighth-grade social science class, “Was there anything positive about Mughals?” Khan was teaching at the English-medium Saifee Senior Secondary School, whose students are Dawoodi Bohras, a small Islamic sect that has been based in India since the Mughal era, when its leaders faced persecution in the Middle East. Like Jews, Parsis, and Baha’is, the Bohras are a religious minority that found shelter in India’s unusually tolerant culture.

Yet some of Khan’s students saw only barbarism in the time of their own community’s emergence in India. “In the medieval era, there were wars and all. It was sectarian,” said a bespectacled girl named Rabab Khan. Rabab and another of her classmates, Qutbuddin Cement, told me that the “glorious” period of Indian history occurred before Muslim rule. “In ancient times, India was called ‘the Golden Bird,’” said Qutbuddin. “India was a world leader.”

Since last year, students at the Saifee School have been using new textbooks published by the Rajasthan government, which is run by the Hindu nationalist Bharatiya Janata Party (BJP) that dominates India’s parliament and state legislatures. The new textbooks promote the BJP’s political program and ideology. They argue for the veracity of Vedic myths, glorify ancient and medieval Hindu rulers, recast the independence movement as a violent battle led largely by Hindu chauvinists, demand loyalty to the state, and praise the policies of the BJP prime minister, Narendra Modi. One book reduces over five centuries of rule by a diverse array of Muslim emperors to a single “Period of Struggle” and demonizes many of its leading figures.

These textbooks are part of the BJP’s ongoing campaign to change how Indian history is taught in middle and high schools. Textbooks issued last year by two other states under BJP rule, Gujarat and Maharashtra, resemble the Rajasthan books in their Hindu triumphalism and Islamophobia. So, in a subtler fashion, do updates made in May to federal textbooks.

Since the BJP came to power in 2014, it has stacked institutions with Hindu nationalist ideologues, presided over an increase in Hindu extremist…