Pedophilia is a real threat. Officials have caught large-scale pedophile rings far more often than one might think , and some of them have involved famous individuals and cover-ups . To many, it is a uniquely evil crime; someone who sexually abuses a child seems capable of anything. But fear of pedophiles can be weaponized and used to whip up mobs that don’t want to wait for solid evidence of wrongdoings to emerge, lest unspeakable horrors go unchecked. In many ways, it is an ideal tool for mobilizing small but highly vocal pockets of opposition against one’s enemies, as it can co-opt some people with genuine fears about child trafficking into perpetuating smear and harassment campaigns. It also offers those who are already predisposed to believing terrible things about the accused more license to hate. Accusations of pedophilia are often taken extremely seriously by law enforcement as well: In 2014, for instance , British police launched a multimillion-dollar investigation into a number of individuals, some of them national politicians, based on one man’s accusations, which turned out to be utterly baseless.

Naturally, many have drawn a connection between QAnon and Pizzagate, a conspiracy theory that blossomed in 2016 and centered around the belief that Democrats ran a ritualistic pedophile ring out of a basement at Comet Ping Pong, a DC pizzeria that doesn't even have a basement. That theory metastasized in late 2016, leading to a December shooting at the pizzeria by a self-proclaimed investigator and sex slave liberator. Even after former Pizzagate promoters like Alex Jones backed off of the theory, it still has proponents. Some observers have slatted these conspiracies into a wider trend on the modern far right of crying pedophile, often using flimsy evidence, against high-profile liberals.

The same things that inspire conspiracies today likely fueled these early occult panics. Mary deYoung, a social psychologist and expert on moral panics, says the roots are often anxieties about social change or strains, and especially the potential loss of power by an in-group. These worries are then projected on “folk devils” who embody that stress. “Usually, but not always, folk devils are already marginalized people,” she said, “so inflammatory rhetoric about the evils they pose to the social and moral fabric of society is easily accepted.” Self-proclaimed “moral experts” pick up these claims and spread them, and people try to rise up against their folk devils.

According to Rickard Sjöberg, a neuropsychologist who has studied the long history of allegations of Satanic child abuse and pedophilia rings, these sorts of accusations may stretch back at least as far as the 14th century, when stories of ritualistic child abuse by the Knights Templar crusader order were in active circulation. But the first definite link in this conspiratorial chain goes back to 1428 and the valley of Valais, in what is now Switzerland. Locals there started circulating accusations that members of their community had entered into a pact with the devil, who told them to avoid religious services. Rumors and coerced confessions spread the idea that these occult rings met in cellars to hear Satanic preachings, flew around in enchanted chairs, put curses on their neighbors, and abused, murdered, and even ate children. These tales had horrific consequences, as at least hundreds of accused witches were killed over the course of several years, while many more were imprisoned and tortured.

But Pizzagate, QAnon, and other related conspiracies floating around don’t just fit into a long tradition of accusations of pedophilia. As others have noted , the flourishes of these theories—Satanic rituals performed on child victims by depraved cabals, cryptic symbols signaling dark intent or links to the occult, and secret tunnels under ordinary businesses used to abet villainy—actually connect them to a discrete, centuries-old lineage of satanic, or occultic, panics. Most notably, they bear striking similarities to the American “Satanic Panic” of the 1980s. Pizzagate, QAnon, and their modern ilk are “not as Satanic as the stuff in the 80s was,” said Margaret Peacock, an expert on propaganda and conspiracies involving children, but added there are clear “similarities in language and materiality between them.”

Similar panics bounced around Europe well into the late 1800s, Sjöberg notes, often in “naïve” communities that had not yet dealt with them before. Each community and era, conspiracy theory wonk Robert Blaskiewicz said in an interview, made adjustments to the targets of the panic, reflecting the stresses of the area and age. Jewish populations, for instance, were on-and-off targets, accused of trafficking children for blood rituals from the medieval era well into the early 1900s . Details changed as people came to realize certain things weren’t physically possible. “The belief that witches are able to fly on cattle, sleeping humans, or sometimes broomsticks,” Sjöberg pointed out, “has become inconsistent with modern thought and disappeared.”

Early occult panics, Sjöberg noted, coincided with social changes linked to the transition away from Medieval social structures and norms. (They have been, he said, “described as the dark side of the Renaissance, the Reformation, and the Scientific Revolution.”) Informed by the demonological literature of the day, they used a Christian framework to tar (often, but not exclusively) women as witches, who would supposedly “manifest their dedication to turning normality upside down by eating with their necks, dancing back to back,” and so on. They were accused of abducting and abusing children as part of their self-indulgent effort to distort the social order for their benefit, thus corrupting them. These accusations led, over the course of numerous panics across Europe, to the imprisonment, torture, coercion of confessions, and eventual execution of tens, if not hundreds, of thousands of individuals .

Peggy McMartin Buckey and her son Ray Buckey during their trial in 1987. They were accused of satanic child abuse but eventually acquitted in what became the most expensive criminal trial in US history. Photo via Getty

Rumors circulated, first in-person within communities, then in the press. They then coalesced into a common narrative about daycare operators forcing children into rituals involving physical mutilation and animal slaughter, among other horrors . These tales of Satanic child abuse and sacrifices in secret tunnels marked by occult symbols, while pegged clearly to that era’s culture and fears, harkened back to older panics.

The American Satanic Panic of the 1980s fits this lineage perfectly. As US families transitioned from depending on one parent’s income to expecting both parents to work, children increasingly spent their days with childcare professionals. This social change led to widespread suspicion of daycare workers, among others. (Rampant homophobia and rising awareness of the ubiquity of queerness also played a role in these suspicions.) Innocuous but odd remarks made by children or bizarre claims drawn out of kids and adults via bullshit recovered memory techniques got sifted through the same cultural prism that inspired other occult panics through history. Unfamiliar with the details of earlier European panics, most Americans approached increasingly wild claims with an unnerving degree of credulous naivete, said Sjöberg.

“The ability of this myth to survive over more than 550 years in considerable detail,” marveled Sjöberg, “is remarkable.”

The American Satanic panic faded by the early 1990s, as investigations into its horrific narratives failed to pan out, and critical reporters debunked their sources. But even though naive societies are more prone to these panics, Sjöberg stressed, this doesn't mean one experience inoculates a community against experiencing variations of them again.

No one is entirely sure how this conspiracy spreads, or gets recycled within a culture over time. One explanation is that there have always been conspiratorial people predisposed to explore all manner of eccentric theories. It is also likely that even after an occult panic fizzles out, low-level belief in it persists in pockets of these conspiratorial circles. At least one major modern conspiracy theorist, for example, was still investigating a long debunked and widely abandoned 1980s ritualistic abuse claim centered on a childcare facility run by the US military when he died in 2016. So it is possible that themes or motifs of these theories bleed into new general conspiracy believer groups over time, who don’t critically engage with them but rather adapt them to their needs.