“After widespread violence in 2008 and 2015, South Africa is now clearly one of most hostile destinations in the world for African migrants. Existing research on the determinants of South African xenophobia has focused on developing and advancing theories, with little attention paid to testing which theories, if any, actually account for mass xenophobia. This is the goal of this paper. By combining individual-level Afrobarometer survey items with municipal-level census indicators, we produce a rich, quantitative data set of numerous factors that have been proposed as determinants of South African xenophobia. The results of multilevel regression analyses show support for the explanations of poverty, relative deprivation, frustration with government, and social mobilization, with mixed evidence for resource competition. Taken together, the results point toward a mechanism of scapegoating, where frustrations and hopelessness produce aggression that is targeted at African immigrants.”