Hecate "Kate" Goodwin is a hedge witch, a rare practitioner whose craft spans the boundary between life and death. She lives alone with her black cat, Merlin, in a cottage on the edge of Ipswich Forest in Massachusetts and belongs to the Atlantic Key, a coven of witches with powers derived from ancestral bloodlines. Kate's mother, Sybil Goodwin, broke tradition by naming Kate a hedge witch at birth rather than allowing her to choose her path at thirteen. No hedge witch had existed in any coven for nearly two centuries. Now almost 31, Kate co-owns an apothecary called the Raven & Crone with Rebecca Bennet, a garden witch who harnesses the magical properties of plants, and lives quietly, still grieving Sybil's death four months earlier.
During the week before Halloween, when Kate's magic is strongest, she encounters Margaret Halliwell, an elderly elder of the Atlantic Key, walking through fog at the forest's edge. Margaret seizes Kate's hand and warns, in a voice not her own, that the veil weakens as Samhain (Halloween) approaches and an entity called the King Below is testing Kate. She urges Kate to find her mother's book. Kate wrenches free and wakes the next morning with no memory of falling asleep. At the apothecary, she learns Margaret died during the night.
Kate's older sister, Miranda, a sea witch who draws her powers from the ocean, volunteers Goodwin Manor, the family's ancestral home, to host the coven's Samhain gathering and instructs Kate to prepare the house. Among Miranda's packages is a mangrove box Margaret left for Kate, containing a vial of unidentified liquid.
That night, Matthew Cypher knocks on Kate's door. He is a hexan (witch) of the Pacific Gate, a rival coven that permits forbidden magic. Kate befriended him ten years earlier at a convocation of covens without knowing his identity; when Sybil exposed him, Kate fled. Now he asks for sanctuary, and Kate reluctantly admits him after he swears an oath of no harm. Matthew practices shadow magic, a form of necromancy forbidden by the Atlantic Key, and claims he has come to harvest rare ingredients, including moonvine that grows only on Samhain.
As they clean the manor together, Matthew insists hedge craft should balance life and death energies, including Shadow Walking (traveling through the veil), Siphoning (transforming life energy into death energy and vice versa), and Guiding (leading spirits to rest). Kate rejects this, defending her mother's training. In the attic, she discovers a hidden leather-bound tome bearing her mother's handwriting: "The King Below shall never again know my secrets." A moonstone test reveals the book is sealed with blood magic, one of the most forbidden crafts. Matthew discovers the ink has begun infecting Kate with a curse and removes it before it can spread.
They visit Winifred Bennet, Rebecca's mother, the coven's leader and meta-magic witch who can manipulate the fabric of magic itself. Winifred admits she helped Sybil create the book but refuses to remove its seal. When Kate defies her, Winifred attacks Kate with her power, and Matthew intervenes to stop her. That night, after drinking a sleeping draught Winifred provided, Kate wakes deep in the forest pursued by hellhounds. Matthew, who cast a protective boundary around the cottage when he arrived, rescues her but sustains a severe wound that Kate heals, leaving a shimmering bronze scar.
Ginny Bennet, Rebecca's 15-year-old daughter and a book witch with perfect recall, helps Kate research the King Below. Through a magical recall at the apothecary and a later visit to the coven's secret archives, Ginny reveals that the King Below is a wizard trapped beyond the veil who can affect the living only through bargains. Hedge witches are uniquely vulnerable because their powers share an origin with his; he wants Kate to maintain the veil so he can regain strength and walk among the living. Kate remembers the vial Margaret left her: water capable of dissolving blood magic. She pours it onto the Grimoire, and the seal breaks.
The book reveals Sybil's pact with the King Below: She earned blood magic by promising to name her next daughter a hedge witch. Hidden diary entries show that Sybil sought power to save her husband, William, from a fatal illness. When she tried to break her promise, the King Below ensured William's death. Sybil then named Kate a hedge witch but deliberately withheld death-magic training so the Containment, a ritual on a witch's 31st birthday that strips all magic beyond her practiced craft, would remove any power the King Below could exploit.
Kate's sisters arrive for the dumb supper, a traditional silent meal honoring the dead. Over the following days, Kate and Matthew grow closer, and they share their first kiss. Miranda confronts them by casting her Siren song, a coercive vocal enchantment, on Matthew. It fails. Miranda interprets this as proof of heartlessness, though Celeste, Kate's younger sister, later reveals the enchantment cannot affect men already in love. When Miranda yanks Kate away, Matthew grabs Miranda's wrist to stop her, and his shadow magic causes severe necrosis to Miranda's arm. Kate demands the full truth. Matthew confesses his family are sworn descendants of the King Below, and he came to protect Kate against his father's wishes. He urges her to refuse the Containment, to stay in the cottage after nightfall, and tells her he loves her. Malicious shadows then flood the cottage, consume him, and he vanishes.
On Halloween, Kate uses Siphoning to partially heal Miranda's arm, her first successful application of death magic. She tells her sisters everything, and Miranda mobilizes the coven at the manor. Winifred attempts Kate's Containment, but Kate refuses, choosing to keep the full range of her powers. At sunset, shadows pour from the walls. Kate Shadow Walks to the land below to face the King Below on her own terms.
In a spectral Goodwin graveyard, the King Below, gaunt with silver hair and black eyes, demands Kate become his hedge witch. She refuses. He produces her mother's chained spirit and then Matthew, bound in burning iron, torturing him to break her resolve. Kate presses rosemary into her grandmother's headstone, summoning the spirits of her foremothers. She Siphons the King Below's shadow magic from his chest, draining his power to heal her own injuries. He disintegrates, leaving a chromatic key that transforms into a dagger. A compulsion urges Kate to plunge it into her heart, which would bind her as guardian of the veil forever. Her freed mother confirms that without a guardian, the land below will collapse into the living world. Matthew, fatally wounded from healing Kate during the battle, insists on taking the key as a descendant of the King Below. Kate tells him she loves him. He takes the dagger and drives it into his own chest.
Kate wakes in the manor library. She tells her sisters everything, and Miranda admits she misjudged Matthew. In the predawn hours, Kate encounters Winifred's ghost on the hillside. Winifred, who died during the night's events, reveals she traded magic stripped from witches during Containments to the King Below in exchange for an unnaturally long life, explaining the coven's weakening power. Kate Guides Winifred's spirit across the veil in her first deliberate act as a fully realized hedge witch.
Kate enters her cottage to find Matthew alive. As guardian of the veil, he can walk the living world on Samhain, when the boundary is weakest. He offers her a tea brewed from the ingredients he gathered all week. If she drinks, she becomes his hedge witch, his counterpart maintaining the veil from the living world, and he can remain with her from Samhain to Beltane, a spring celebration, each year. Kate drinks. Around his neck hangs a small key inscribed with her initials, signifying their bond: He is the Key, guardian controlling passage between realms, and she is the Gate, his anchor among the living. As dawn breaks, they retreat together into the cottage's warmth.