Detention is when young people are sentenced to custody and sent to a young offenders institution (aged 18 - 20) or secure accommodation (aged under 18), rather than prison.