The author presents a new theory of magical actions based on a wide array of recent findings in the cognitive sciences. Analysing classical ethnographic cases, he argues that paying close attention to the underlying cognitive processes will not only explain why magical rituals look the way they do, it will also supply new insights into the role of magic in the formation of institutionalised religion.