The aim of this thesis is to investigate whether students with a Swedish background to a greater extent leave or avoid schools with a large influx of newly arrived refugees. The question of research is therefore “How did the student composition change as a result of the refugee crisis in 2015?”. Statistics have been used from The Swedish National Agency for Education for all compulsory schools in Sweden. The theoretical basis consists of two main discrimination theories: Taste-based Discrimination Theory and Statistical Discrimination Theory. The theoretical framework is used in order to analyze individuals’ behavioral patterns on the school market. A difference in difference approach has been used together with available statistics on all national tests in Swedish compulsory schools, to produce a regression analysis estimating the impact of the refugee crisis on student composition. There appears to be no statistically significant relationship between an influx of refugees and an outflow of Swedish-born students.