As pupils across Scotland receive their results, the BBC has looked at where the country's attainment gap stands - and how it has been affected by exams, the pandemic and government policy.
What is the attainment gap?
In a nutshell, children from richer families tend to do better at school than children from poorer families.
For the disadvantaged pupil — and in turn for their children — this means a lower chance of progressing to further education and a decent job.