What is the role of religion in history?