Social and political polarization is a significant source of conflict and poor governance in many societies. Thus, understanding its causes has become a priority of scholars across many disciplines. Here we demonstrate that shifts in socialization strategies analogous to political polarization and identity politics can arise as a locally-beneficial response to both rising wealth inequality and economic decline. Adopting a perspective of cultural evolution, we develop a framework to study the eme...