Drawing on an advanced analysis of individual longitudinal register data of school careers of four cohorts of children in Amsterdam, this article suggests that school advice is highly differentiated between children of different migrant and socioeconomic backgrounds. Moreover, apart from these individual characteristics, we demonstrate that the socioeconomic composition of neighbourhoods and schools is important for understanding differences in school advice. The analysis shows that neighbourhood and school socioeconomic disadvantage negatively affects the school advice of children with highly educated parents, while socioeconomic advantage positively affects all children and especially children of lower- and intermediate-educated parents. The positive neighbourhood effects are, however, mediated by primary school context. We suggest that while most of the educational inequalities may be explained by individual characteristics, residential and school segregation intensify these inequalities, especially through the beneficial effects of neighbourhood and school advantage.