A German court on Wednesday ruled that a Muslim student cannot skip co-ed swimming lessons because her religion prohibits form-fitting clothes that do not cover her body, The Local reported.

The 12-year-old girl’s parents sued a school in the northern city of Remscheid after it refused to let the girl skip the lessons. The court sided with the school, saying that the state’s responsibility to educate the girl outweighed an infringement on her religious freedom.

Last year the girl’s parents rejected an offer from the school saying she could swim in leggings and a T-shirt. They argued that her body still would be visible through wet clothes, The Local reported.

The court concluded that because the swim lessons take place in water, there would be very little time that her body would be seen.

The parents’ attorney said the family will appeal the decision.

Click here to read more on this story from The Local.