Background The use of antidepressants in children and adolescents remains controversial. We examined trends over time and variation in antidepressant prescribing in children and young people in England and whether the drugs prescribed reflected UK licensing and guidelines. Methods and findings QResearch is a primary care database containing anonymised healthcare records of over 32 million patients from more than 1,500 general practices across the UK. All eligible children and young people aged 5-17 years in 1998-2017 from QResearch were included. Incidence and prevalence rates of antidepressant prescriptions in each year were calculated overall, for 4 antidepressant classes (selective serotonin reuptake inhibitors [SSRIs], tricyclic and related antidepressants [TCAs], serotonin and norepinephrine reuptake inhibitors [SNRIs], and other antidepressants), and for individual drugs. Adjusted trends over time and differences by social deprivation, region, and ethnicity were examined using Poisson regression, taking clustering within general practitioner (GP) practices into account using multilevel modelling. Of the 4.3 million children and young people in the cohort, 49,434 (1.1%) were prescribed antidepressants for the first time during 20 million years of follow-up. Males