In the small Kentucky town of Twisted Tree, a former parochial school janitor named Jeff Pritchard spent years disguised as a priest, luring society's outcasts to their deaths. Dubbed "Father Silence" for his refusal to speak after his arrest, Pritchard is executed by electrocution after seventeen years on death row. Just before the current surges through him, he whispers to a nearby guard: "Beware the one that got away."
Tess Claiborne, a homicide detective in Missoula, Montana, learns of the execution at home, where she is raising her nine-year-old daughter Julia alone after separating from her husband Justin, a psychologist. Tess is the daughter of retired Detective Leland Patterson, who arrested Pritchard alongside his partner Burt Lobell nearly two decades earlier. The family moved from Twisted Tree to Montana shortly afterward, and Tess has significant gaps in her memory from that period, along with a deep phobia of thunderstorms.
The morning after the execution, a man calls Tess at the station, identifies himself as "the Outcast," and confesses to murdering two people at her parents' remote cabin. Tess finds both parents dead, killed by hammer blows to the head, their closed eyelids painted over with black paint. A photo of Julia is missing from Leland's wallet. Tess races to Julia's school and discovers her daughter never entered the building. A classmate explains that a man in sunglasses, claiming to be Julia's uncle, took Julia and asked the classmate to carry Julia's book bag inside. In the bag, Tess and Justin find a note: "I have your daughter now. Don't worry, I'll keep her safe." A Polaroid left in Leland's stolen Jeep shows Julia alongside an unknown boy, later identified as Richard Moore, an eight-year-old orphan taken from a children's home in Idaho.
Tess's partner Danny Gomes coordinates with the FBI. The Outcast calls again, and Julia briefly speaks, asking if her parents' fighting is her fault. A nurse whom the Outcast tied up reports that both children seemed calm and that he mentioned taking them to "the Playhouse." At the cabin, Tess finds her father's briefcase containing his investigation into Pritchard. Meanwhile, Burt Lobell is murdered in Twisted Tree, his throat slashed and eyes painted black. The differing method confirms a second killer. Round-trip airline tickets found at the home of Jeter Janks, a rookie Louisville police officer, prove Janks traveled to Montana and likely killed Tess's parents. Tess discovers hydrocodone pills at the cabin and relapses into opioid addiction.
Tess, Justin, and Danny fly to Kentucky. On the plane, they study Leland's interview with the mother of Noah Nichols, the only child to survive Pritchard's captivity. His mother describes Noah as an unwanted child she believed was possessed, with imaginary friends named Oskar and Ruth. After his return, Noah obsessively drew pictures of eyes surrounded by darkness, signing them with names that were not his own. He later killed his father, carving "Outcast" into the dead man's chest, and has been confined at Berringer Hills Hospital for the Criminally Insane ever since.
At Berringer Hills, Tess and Justin interview Noah and witness him shift between distinct personalities: Dean, Tom, Stephen, and Amelia. Most alarmingly, the Outcast personality emerges when Noah puts on sunglasses, his voice dropping to a deep, stuttering tone. Justin identifies dissociative identity disorder, in which the mind creates alternate identities to cope with trauma, but suspects something unprecedented: Noah's personalities match the names and ages of the four children who died in Pritchard's basement. Justin theorizes Noah absorbed their identities as they died beside him. The Outcast personality continues to age, suggesting the real Outcast survived and escaped as a boy no one knew existed. Tess's repressed memories also begin resurfacing. She recalls hiding in her father's police car the night of Pritchard's arrest and seeing a shirtless boy in a dog mask crawl from a basement window.
A masked cult called the Lost Children, which worships Pritchard's memory, escalates violence across Twisted Tree. Jeter Janks murders his patrol partner and abducts Foster Bergman, a retired priest connected to the original case. Tess finds Bergman's body in the woods, eyes painted black. Danny travels to Bowling Green, where a nun named Sister Mary Rose reveals through written notes that Pritchard had a close companion at his childhood orphanage: a violent girl named Diane Cherry. Before fleeing the orphanage, Diane attacked Sister Mary Rose, cut out her tongue, and declared, "Mother has you now."
Tess identifies Benjamin Knowles, the music director at Pritchard's old parish, as the Outcast. Though he poses as legally blind, Tess notices written notes near his piano and a suppressed stutter. He has been visiting Noah monthly as "Father Friday." Meanwhile, Eliza, Danny's wife, traces Diane Cherry's family history back to Twisted Tree, and Danny finds Diane's old room at the orphanage covered in satanic symbols. Tess and Justin realize that Lisa Buchanon, the woman living in Pritchard's renovated house, is actually Diane Cherry. Her alternate personality, "Mother," was the true mastermind behind Pritchard's crimes.
Justin convinces the warden to take Noah to his childhood home, hoping to unlock the suppressed personality of Oskar by confronting the closet where Noah's mother locked him as punishment. During a thunderstorm, Noah kicks in the closet door and Oskar emerges: confident, cocky, and chain-smoking. He escapes by leaping through a second-story window and later contacts Justin with the full truth. Mother controlled Pritchard, using him to lure victims. Benjamin was her unwanted son, conceived through rape. When Pritchard kidnapped children to give Benjamin companions, Mother ordered them poisoned with cyanide-laced wine, but Benjamin saved Noah by knocking his cup away. Oskar confirms the Playhouse is at the abandoned Harlow Distillery, then burns Noah's childhood home and drives away.
Barrett Stevens, Pritchard's former defense lawyer and a secret cult member, captures Tess at the Playhouse, kills Detective Andy Evans, and locks Tess in a car trunk. From inside, Tess texts Danny a photo of a message Julia left on a wall spelling "Rose Island," an abandoned amusement park across the Ohio River in Indiana. Over a hundred masked Lost Children gather there around Pritchard's exhumed corpse. Twelve kidnapped children are marched in as Lisa, wearing a wolf mask, prepares a ritual sacrifice with Tess as the offering.
Benjamin arrives with two hammers, makes eye contact with Tess, and swings one into his mother's skull. During the chaos, Tess's final repressed memory surfaces: on the night of Pritchard's arrest, she encountered the teenage Benjamin under the twisted trees. Two football players, Grisham Graham and Jeremy Shakes, sexually harassed Tess and assaulted another girl, Amy Dupree. Benjamin killed Shakes with a hammer. Tess struck the body in a moment of fury, then Benjamin killed Grisham, and Amy struck the second body as well. All three fled, and Tess repressed the memory entirely. FBI and police storm Rose Island. Justin arrives, Julia runs to him, and the family reunites. Benjamin tries to flee with the remaining children, but when he reaches for his hammer to protect them from approaching cult members, authorities open fire, killing him despite Tess's shouts that he is not holding a gun.
Four weeks later, Justin has moved back home. Julia shows no daytime effects but has nightmares about men in animal masks. Twenty-seven adult bodies are unearthed at the Playhouse, all identified as people convicted of or accused of child abuse. The other kidnapped children are placed in foster homes. Justin receives a postcard from San Francisco signed by Oskar, confirming that he, Ruth, and Noah are free. Noah Nichols is never found.