We investigate how cross-cutting ethnic and religious identities as well as the strength of individual religiosity and fundamentalism affect individual cooperation. In a repeated prisoner’s dilemma experiment, information about subjects’ religious and ethnic identities was either revealed or concealed to examine the individual and joint effects of these influences on subject decisions. While subjects’ knowledge of others’ religious and ethnic difference has no net effect on their cooperativeness, the awareness of similarity increases it. Subject religiosity and fundamentalism have no independent effect on cooperation, but they enhance ethnic and religious intergroup effects.