In The Witch (2015, written and directed by Robert Eggers), the character Matthew—the family patriarch played by Ralph Ineson—nearly dies in two distinct ways tied to the witches: he is mauled and seemingly killed by the family’s goat, Black Phillip, in the climax, and earlier he is nearly lost in the dark woods while pursuing the witch’s trail, though the film’s most direct “witch-adjacent” near-death is the goat attack, which the film strongly implies is the witches’ agent or familiar rather than an ordinary animal. The precise phrasing of your query is ambiguous—it could mean “how does Matthew nearly pass away in the scenes involving witches,” “how does Matthew nearly die because of the witches,” or “how does Matthew nearly die while the witches are present”—so this answer treats the goat confrontation as the core event and separates out the other near-misses and the interpretive questions around them.

The short version: in the film’s final act, Black Phillip—the family’s black goat, whom the twins Mercy and Jonas have been talking to and who is strongly coded as the witches’ familiar or a manifestation of the Devil—gores and tramples Matthew in the goat pen, leaving him bleeding and apparently dying. Thomasin finds him, and he dies in front of her in the following scene, though the film cuts away before a clean on-screen death is confirmed. The witches themselves are not physically present for that attack; their presence is felt through Black Phillip, the woods, and the escalating supernatural events. Any answer that says “the witches stab Matthew” or “the witches directly kill him on screen” is wrong, because the film never shows that.

What Actually Happens to Matthew in The Witch

The goat attack in the pen

The clearest near-death and death event for Matthew comes late in the film. After the family’s fortunes collapse—crops fail, the baby Samuel vanishes, the twins become increasingly strange, and Caleb dies after being seduced and drained by the witch in the woods—Matthew’s authority and sanity fray. In the final act he confronts Thomasin, accuses her of being the source of the family’s ruin, and then goes out to deal with Black Phillip, the goat he has come to see as a threat. The film shows Matthew in the goat pen; Black Phillip charges him, and Matthew is left on the ground, bleeding from the head and body, mortally wounded. Thomasin finds him there. He is barely able to speak, and in the next scene he dies.

The film is deliberately elliptical. It does not give a clinical blow-by-blow of the goring, and it does not show a witch standing over him. The violence is framed as an animal attack that is nonetheless saturated with supernatural meaning. The goat has been established as unnerving: the twins speak to it as if it were a person, it has a name out of folklore (Black Phillip is a traditional name for the Devil in English witch-lore), and the film’s visual language treats it as an uncanny presence. Whether Black Phillip is literally a witch’s familiar, the Devil in animal form, or simply an animal that the family’s paranoia and the witches’ influence have made monstrous is a matter of interpretation—but the film’s tone and the twins’ behavior push toward the supernatural reading.

Why this counts as “when witches are” involved

The witches in The Witch are mostly off-screen or at the edges: the witch in the woods who takes Samuel and later seduces Caleb; the old woman in the forest; the coven gathering in the final scene. They do not march into the farmhouse and attack Matthew. Instead, the film uses the goat as the instrument of the witches’ influence—or at least as the thing the family’s fear and the witches’ presence have turned lethal. So if your question is “how does Matthew nearly pass away when witches are [around/involved],” the answer is: through Black Phillip, the goat that the witches’ presence has made into the family’s destroyer. The attack is the near-death moment; the subsequent scene confirms he dies of it.

There is a real ambiguity here worth naming. The film never states outright that Black Phillip is a witch’s familiar. It gives you the folklore name, the twins’ conversations with the goat, and the goat’s uncanny behavior, but it leaves the metaphysics open. A viewer can read the goat attack as a natural animal attack that the family’s hysteria makes seem demonic, or as a supernatural agent of the witches. The near-death event is the same either way; the cause is what the film refuses to settle.

The Other Near-Misses and the Confusion Around Them

The woods pursuit

Earlier in the film, Matthew does not nearly die in a witch confrontation the way, say, a character in a slasher film might. He goes into the woods with Caleb and others to hunt, and the family’s encounters with the forest are more about atmosphere and loss than about Matthew personally being attacked by a witch. Caleb is the one who is seduced and killed by the witch in the woods. Matthew’s near-death is concentrated in the goat pen climax. If someone told you “Matthew nearly dies when the witches are [present],” they may be conflating Matthew with Caleb, or they may be reading the goat attack as the witches’ doing—which is a reasonable reading, but it is not the same as a witch physically attacking Matthew.

The accusation scene and the family’s collapse

There is also a non-physical near-death dimension: Matthew is nearly destroyed by the family’s unraveling. He is the patriarch who has staked everything on a religious exile, and the film shows his authority collapsing as the witch’s influence (or the family’s fear of it) takes hold. That is not a “near pass away” in the literal sense, but it is the psychological context for the goat attack. The film wants you to feel that Matthew is being killed by the thing he cannot name—the witch, the Devil, or his own failure to protect his family.

What the film does not show

It is important to be precise about what The Witch actually depicts. It does not show a witch physically assaulting Matthew. It does not show a ritual that targets him. It does not give a medical explanation of his wounds. The goat attack is the near-death event, and the film’s ambiguity about Black Phillip’s nature is the interpretive crux. If you are looking for a scene where a witch “nearly kills Matthew,” that scene does not exist in the film as a direct witch-on-man attack. The witches’ role is indirect: they take the baby, they take Caleb, and their presence—or the family’s belief in it—turns the goat into the instrument of Matthew’s death.

Why the Query’s Phrasing Matters

The phrase “when witches are” is incomplete, and that incompleteness is the main source of confusion. It could be asking:

“How does Matthew nearly pass away when the witches are present?” — The witches are rarely physically present with Matthew; the goat attack is the closest thing to a witch-adjacent near-death, and the witches themselves are not in the pen. “How does Matthew nearly pass away when the witches are involved?” — Then the goat attack is the answer, read as the witches’ influence working through Black Phillip. “How does Matthew nearly pass away when the witches are the threat?” — Same event, but the emphasis falls on the witches as the cause rather than the goat as the instrument.

A good answer has to separate the literal on-screen event (goat attack, mortal wounds, death) from the interpretive question (is the goat the witches’ agent?). The film deliberately keeps that interpretive question open, and that openness is part of its horror.

The Folklore and Literary Context

Black Phillip is not a random name. In early modern English witch-lore and in later folklore, “Black Phillip” is associated with the Devil, often in the form of a goat or a black animal. The film’s use of the name is a signal that the goat is not just livestock. The twins, Mercy and Jonas, talk to Black Phillip as if it were a person, and the film’s sound design and framing make the goat’s presence feel wrong. That is the film’s way of making the witches’ influence tangible without putting a witch on screen.

This matters for your question because it explains why a viewer might say “the witches kill Matthew” even though no witch touches him. The film’s supernatural logic is that the witches’ presence corrupts the ordinary world—the goat, the woods, the family’s faith—and that corruption is what kills Matthew. The near-death event is a goat attack; the meaning of the event is witch-driven. The film wants both readings to coexist.

What a Careful Answer Should and Should Not Claim

A careful answer should say:

Matthew is mortally wounded by Black Phillip, the family’s goat, in the film’s climax. The goat is strongly coded as a familiar or diabolical agent, but the film never confirms this outright. The witches themselves do not physically attack Matthew on screen. Earlier near-misses (the woods, the family’s collapse) are context, not a direct witch-on-Matthew attack.

A careful answer should not say:

“The witches stab Matthew” (they don’t). “Matthew survives the goat attack” (the film shows him dying). “Black Phillip is definitely the Devil” (the film leaves it ambiguous). “The witches are present in the pen” (they aren’t shown there).

How to Watch the Scene with the Right Expectations

If you are rewatching The Witch to see the near-death moment, watch the final act closely. The film builds to the goat pen confrontation with a lot of misdirection: the family’s fear, Thomasin’s accusation, the twins’ eerie behavior, and the goat’s increasing prominence. When the attack comes, it is quick and brutal, and the film does not linger on gore. The near-death is conveyed through Matthew’s wounds, his weakened speech, and Thomasin’s horror. The witches’ role is conveyed through everything around the attack—the goat’s name, the twins’ talk, the forest, the coven in the final scene—rather than through a witch physically present.

That is the key distinction for your question: the witches are the reason the goat attack reads as supernatural, but they are not the physical agent of the near-death on screen. The film’s horror depends on that gap between what you see (a goat goring a man) and what you infer (the witches’ influence). If you collapse that gap—if you say “the witches kill Matthew”—you lose the film’s central ambiguity.

A Note on the Ending and Thomasin

After Matthew dies, Thomasin is left alone with the goat. The film’s final scene shows her talking to Black Phillip, and then she is seen naked at a coven gathering in the woods. The implication is that she has been seduced into the witches’ world, or that she has finally found the freedom she was denied. Matthew’s death is the hinge: it removes the patriarch, leaves Thomasin without family, and makes her vulnerable to the witches’ offer. So the near-death and death of Matthew are not just a horror set piece; they are the narrative mechanism by which Thomasin is isolated and the witches’ final recruitment becomes possible. That is another way the witches are “involved” in Matthew’s death—not as the physical attacker, but as the force that benefits from it.

Summary of the Answer

Matthew nearly passes away—and then dies—when Black Phillip, the family’s goat, gores and tramples him in the goat pen in the final act of The Witch. The goat is strongly associated with the witches and the Devil through its name, the twins’ behavior, and the film’s supernatural atmosphere, but the witches themselves are not physically present for the attack. The film leaves open whether Black Phillip is a familiar, the Devil, or an ordinary animal made monstrous by the family’s fear. Earlier near-misses, such as the family’s collapse and the woods sequences, provide context but are not direct witch-on-Matthew attacks. Any claim that the witches physically kill Matthew on screen is a misreading of what the film shows; the correct reading is that the witches’ influence—or the family’s belief in it—turns the goat into the instrument of his death.