If rituals persist in part because of their memory-taxing attributes, from whence do they arise? I suggest that magical practices form the core of rituals, and that many such practices derive from learned pseudo-causal associations. Spurious associations are likely to be acquired during problem-solving under conditions of ambiguity and danger, and are often a consequence of imitative social learning.