Costly religious rituals such as male and female circumcision, food and water deprivation, and snake handling look paradoxical in evolutionary terms. Devout religious beliefs wherein such traditions are practiced appear maladaptive. Religion may have arisen to increase and maintain intragroup cooperation. Cooperation leads to altruistic behaviour, and costly signalling could explain this. All religions may involve costly and elaborate rituals, performed publicly, to demonstrate loyalty to the religious group. In this way, group members increase their allegiance to the group by signalling their investment in group interests. However, as group size increases among humans, the threat of free riders grows. Costly signalling theory accounts for this by proposing that these religious rituals are costly enough to deter free riders.