Detention is a disciplinary measure in schools where students are required to remain at school outside regular hours as a consequence for misbehaviour or rule violations. Detention can occur during lunch, after school, or occasionally before school. The purpose is to provide a consequence for inappropriate behaviour, encourage reflection, and sometimes allow students to complete missed work. School policies regarding detention vary: some require parent notification, specify maximum duration, or outline offences warranting detention. More serious misconduct may result in suspension rather than detention. Educational approaches to discipline have evolved, with many schools now supplementing or replacing traditional detention with restorative practices, peer mediation, or counselling that address underlying issues. Provincial education acts and school board policies govern the use of detention and other disciplinary measures.