This study is about the roles that the cultural background and type of schools play for being exposed to ethnic harassment as an immigrant. I use data from a longitudinal study called the Seven Schools Project at Örebro University. The participants were 1602 youths, 760 boys and 838 girls, and these participants were between 13-16 years of age (grades 7 through 9 in the Swedish comprehensive schools). The most important finding in this study was that the association between cultural identity and being exposed to ethnic harassment depended on the type of school the immigrants attended to. In schools with few immigrants, immigrant youths seemed to differentiate between their original cultural identity and a Swedish identity, and in these schools exposure to ethnic harassment was higher if the youths adopted a traditional cultural identity. In schools with many immigrants, by contrast, youths did not seem to differentiate between the original cultural and a Swedish identity. In these schools, it did not matter what cultural identity the students had - they were both related to higher ethnic harassment. Finally, I found no differences between the genders with regard to exposure to ethnic harassment.