Indonesia has banned public schools from making religious attire compulsory, after the story of a Christian student being pressured to wear a headscarf in class went viral.
The girl was attending a school that had a rule that all students had to wear the Muslim headscarf.
The government has given schools 30 days to revoke any existing rules, reports the BBC.
Indonesia, a Muslim-majority country, officially recognises other religions.
But there are growing concerns about rising religious intolerance.
The ban was signed into decree on Wednesday, and schools which do not comply may face sanctions.
Indonesia's Minister for Education and Culture Nadiem Makarim said the choice of wearing religious attire was "an individual's right… it is not the school's decision".