Do people identify with social groups because of their political opinions, or do they identify with political opinion camps because of their basis in social groups? We build a theoretical model of why opinion-based and social group-based polarization are connected and test this with a survey experiment embedded in the British Election Study Internet Panel. The opinion-based identities concern immigration and the environment, both strongly connected to the universalist-particularist cleavage. We social group identity focused on is the working class, which has considerable salience in the British context. When self-identifying working class respondents are informed that their class is the majority in an opinion-based group, they feel closer to that group. However, specific opinion-camps feel more distant from the working class when they believe this class is the majority in the opposing opinion-based group. Social group and opinion-based polarization are thus intertwined, one influencing the other.