The causes, consequences, and timing of the rise of moralizing religions in world history have been the focus of intense debate. Progress has been limited by the availability of quantitative data to test competing theories, by divergent ideas regarding both predictor and outcomes variables, and by differences of opinion over methodology. To address all these problems, we utilize Seshat: Global History Databank, a vast storehouse of information designed to test theories concerning the drivers of social complexity in world history. In addition to the Big Gods hypothesis, which proposes that moralizing religion contributed to the success of increasingly large-scale complex societies, we consider the role of warfare, animal husbandry, and affluence in the rise of moralizing religions. Using a broad range of nuanced measures of moralizing religion, we find strong support for previous research showing that institutions endorsing beliefs in supernatural enforcement arise after, not before, the sharpest rises in social complexity in world history. In addition, our analyses suggest that intergroup warfare, supported by resource availability, played a significant role in driving the rise of both social complexity and moralizing religions. The data, methods, and results presented in this paper have been made publicly available online for others to inspect and critique, allowing additional analyses to be run and alternative assumptions to be tested, in parallel with peer review and prior to publication.