An Indian court upheld a local ban on the hijab in classrooms on Tuesday, weeks after the edict stoked violent protests and renewed fears of discrimination against the country's minority Muslim community.
The southern Indian state of Karnataka was on edge for several weeks after a small group of girls in their late teens were prevented from wearing the hijab on school grounds at the end of last year.
Demonstrations snowballed across the state and police used tear gas to disperse angry crowds as more schools imposed their own bans and radical Hindu groups staged boisterous counter-demonstrations.
After weeks of deliberations, Karnataka's high court ruled that wearing the hijab was not an essential Islamic religious practice.
"Prescription of uniform is a reasonable restriction on fundamental rights," the court said.
State home minister Araga Jnanendra said that extra officers had been deployed to police stations on Monday night to ensure law and order was maintained ahead of the ruling.
Many in Karnataka say that Muslim girls have worn the hijab in schools for decades, just as Hindus, Sikhs and Christians have done with symbols of their respective symbols.
Critics accuse authorities in Karnataka, which is ruled by Prime Minister Narendra Modi's Hindu nationalist Bharatiya Janata Party, of seeking to drive a wedge between religious communities that have existed side-by-side peacefully for generations.
The Karnataka government last month attempted to impose calm by closing schools for several days and banning protests.
The state high court initially ordered a temporary ban on the wearing of all religious symbols -- including Hindu and Christian ones -- in schools.
Schools reopened in February under heavy security with a ban on gatherings of more than four people.
A number of Muslim pupils told local media they would rather go home than be made to choose between their faith and education.
"My daughter has been wearing the hijab since she was five years old. It is to protect her dignity," Nasir Sharif, 43, the father of a 15-year-old girl, told AFP last month.
"What they are asking us to do is humiliating," he added.