The story of the film is based on Václav Kaplický's book "Kladivo na čarodějnice" (1963), a novel about witch trials in Northern Moravia during the 1670s. Kryštof Alois Lautner is a historical figure who is portrayed accurately in the novel.