Religion, in promoting outlandish beliefs and costly rituals, increases ingroup trust but also may increase mistrust and conflict with outgroups. Moralizing gods emerged over the last few millennia, enabling large-scale cooperation, and sociopolitical conquest even without war. Whether for cooperation or conflict, sacred values, like devotion to God or a collective cause, signal group identity and operate as moral imperatives that inspire nonrational exertions independent of likely outcomes. In conflict situations, otherwise mundane sociopolitical preferences may become sacred values, acquiring immunity to material incentives. Sacred values sustain intractable conflicts that defy “business-like” negotiation, but also provide surprising opportunities for resolution.