Festinger's cognitive dissonance theory explained the behaviour of the doomsday cult members by arguing that they experienced discomfort or dissonance as a result of their conflicting beliefs and actions. They resolved this discomfort by convincing themselves that their actions were justified.