Barrie police say a teenage girl was arrested and held overnight for habitually being absent from school and missing a court date.

"The 16-year-old female was consistently absent from school without cause and then failed to attend her originally scheduled court date," police said in a statement. 

It's unclear what school the student was supposed to be attending. 

A warrant was issued for her arrest on March 8 and she was located by police on March 11. 

Police say the arrest falls under the Ontario Education Act

"Students and parents are reminded at this time that in Ontario it is mandatory for persons between the ages of six and 18 to attend school," authorities noted.

Police added there are some exceptions in section 21 of the legislation.