The 18-year-old Muslim pupil had been shut out of lessons at a state run vocational college near Regensburg for refusing to remove her niqab, a garment which covers the hair and face leaving only the eyes visible.
She took the matter to court, arguing that the ban was a contravention of her constitutional right to religious expression.
The Bavarian administrative court rejected her complaint in a ruling on April 22nd, on the basis that the school's demand to remove the veil for lessons did not represent an illegal restriction of her rights.
The wearing of the face-covering veil during teaching periods, the court wrote in a statement published on Friday, prevented essential non-verbal communication between teachers and pupils.
Judges found that the right of the state to educate took priority over the pupil's right to religious expression.
"Open communication during teaching is based not only on the spoken word, but also on non-verbal elements such as facial expressions, gestures and other body language," the court said.
If these elements of communication are missing, the ruling stated, teachers could no longer properly fulfill their job.