Utilizing a 13-year longitudinal dataset, machine learning models predict upper secondary school dropout from as early as the end of primary school.