This article explores the origins of the doctrine of baptism for the dead. Examining newly discovered and existing evidence the author proposes that the doctrine is rooted in Joseph Smith's doctrine that the ordinance of baptism was necessary to obtain salvation in the afterlife and that a living individual could act as a proxy for the deceased person.