Research into social identity and morality judgments typically focuses on how the former influences the latter. We approach this theme from the opposite direction, establishing the influence of morality on perceptions of social identity. In three studies, conducted in two cultures, we show that in-group members acting immorally are excluded from the group. Extending this investigation to the overlooked study of out-group-on-out-group behavior, in Studies 2 and 3, we compare perceptions of social inclusion for in-group members following (im)moral behavior toward the in-group with perceptions of out-group members following (im)moral behavior toward the out-group. We show that people treat in-group and out-group members alike with respect to binding morals, which concern preservation and protection of the group, but not individualizing morals, which concern preservation and protection of individual rights. Finally, in Study 3, we confirm the underlying motivating mechanism of reasserting in-group superiority by affirming the positive distinctiveness of one's own group.