How I Met Your Mother Codexery

Marshall's Ex

The one ex who broke the unbreakable couple—and the one who put them back together.

Marshall's Ex

In the world of *How I Met Your Mother*, Marshall Eriksen's romantic history is defined almost entirely by one woman: Lily Aldrin. The pair are together from the very first episode, marry in Season 5, and share the life of the group's stable, family-oriented couple. The phrase "Marshall's Ex" therefore points not to a separate, minor character but to a specific and painful chapter in the series: the divorce and separation that split Marshall and Lily apart in Season 7, making Lily—temporarily—his ex-wife.

This entry treats that ex-period as a narrative beat in its own right, because for Marshall it is the single most destabilizing relationship event of the entire run. It reshapes his identity, his apartment, his role in the gang, and his understanding of what commitment means. By the series' end the "ex" label is retired, but the scar it leaves is part of who Marshall becomes.

character
Lily Aldrin (in her ex-wife capacity)
role
Marshall's ex-wife / former partner during Season 7
first appears
Season 1, Episode 1 (as girlfriend); divorce occurs in Season 7
affiliation
The Gang (Brooklyn, New York)
status
Reconciled with Marshall by the end of the series
defining dynamic
The only significant romantic partner in Marshall's on-screen history

Lore & Background

Marshall Eriksen enters the story already in a long-term relationship with Lily Aldrin, a schoolteacher and artist whose sharp tongue and fierce loyalty balance his big, earnest heart. For five seasons the couple is the emotional anchor of the group: they share a Brooklyn apartment, bicker about everything from furniture to parenting, and treat their commitment as a given. Their wedding—planned and executed with the full gang's chaotic help—feels like the natural culmination of a story that started before the cameras rolled.

Then Season 7 arrives and the ground shifts. Lily takes a teaching position in Los Angeles, the distance and the accumulated frustrations of marriage crack the relationship open, and the couple divorces. For Marshall, a man whose entire adult identity was built around being Lily's partner, the "ex" label is almost incomprehensible. He moves back into the gang's apartment, his days lose their structure, and he is forced to rediscover who he is outside the marriage. The gang rallies around him, but the silence in the apartment where Lily used to be is a character in its own right.

The reconciliation, which comes in the final stretch of the series, is not a simple reversal. Both characters have changed. Marshall has learned that love requires ongoing choice, not just initial commitment, and Lily has learned that her own ambitions are not a betrayal of the family she built. When they come back together, the "ex" chapter is closed, but it has permanently deepened what their relationship means to each other and to the friends who watched it fracture and heal.

In Their Own Story

The apartment is quiet in a way it hasn't been in years. Marshall sits on the couch, a half-finished board game spread across the coffee table, the two-player setup now a small, stupid joke. He keeps reaching for the second mug, then remembering. Outside, the Brooklyn brownstones are lit up for the season, and he can hear the faint thump of a neighbor's television. His phone buzzes. A text from Lily: just a question about the kids' school schedule, nothing more, nothing more. He types a reply, deletes it, types it again. Three words. Then he sets the phone face-down, picks up the board game, and plays both sides himself, losing on purpose so he can have a reason to laugh. It's not the same. It will never be the same. But it's his, for now, and that's enough to get through the night.

Reader's Guide

Full name: Lily Aldrin (referred to here in her ex-wife capacity). First appearance: Season 1, Episode 1, as Marshall's girlfriend. Role within the gang: the emotional and comedic counterweight to Marshall; the voice of reason, the artist, the mother, the one who keeps the group tethered to reality. Key relationships: Marshall Eriksen (husband, then ex, then husband again); the rest of the gang as a family unit; her own professional identity as a teacher and painter.

Her arc across the seasons moves from girlfriend to bride to mother to ex-wife to reconciled partner. The divorce in Season 7 is the hinge: she leaves for Los Angeles, the marriage dissolves, and both characters are forced to examine whether they chose each other or simply grew into the shape of a couple. The reconciliation in the final season is earned, not automatic.

Two or three moments that define her for fans in this "ex" context: the quiet, devastating scene where the divorce is confirmed and the apartment empties; the gang's awkward, loving attempts to fill the silence around Marshall; and the final reunion, where two people who once called each other "ex" look at each other and decide, again, to try.

Did You Know?

More in The Gang & Key Figures

Elsewhere in the How I Met Your Mother universe

Open in the interactive codex →