Alyson Hannigan
The heart, the teacher, the one who always knew what to say when the other four didn't.
Alyson Hannigan is the actress who brought Lily Aldrin (later Lily Eriksen) to life across all nine seasons of How I Met Your Mother. Joining the ensemble as Ted Mosby's close friend and eventual partner of Marshall Eriksen, Lily became the group's moral compass, its most grounded voice, and the character most fans associate with the show's warmth and heart.
Before HIMYM, Hannigan was already a household name for her role as Willow Rosenberg on Buffy the Vampire Slayer, but it was her steady, funny, and deeply relatable portrayal of Lily that cemented her place in a new generation of television fans. Her chemistry with Jason Segel (Marshall) and her natural comedic timing made Lily an indispensable pillar of the Cobble Hill apartment dynamic.
- Character
- Lily Aldrin / Lily Eriksen
- Role
- Main cast member (Seasons 1–9)
- First appears
- Season 1, Episode 1 ("Pilot")
- In-show occupation
- Elementary school teacher
- Notable prior role
- Willow Rosenberg, Buffy the Vampire Slayer
- Show run
- 2005–2014, 9 seasons
Lore & Background
Lily Aldrin enters Ted's orbit in the pilot as a free-spirited, slightly chaotic friend who shares a cramped apartment in Brooklyn with Marshall Eriksen. From the very first episode, she is the one who calls out Ted's bad decisions, nudges Marshall toward better choices, and anchors the group's social life with an easy, self-deprecating humor. She is the friend who brings snacks, who gives the blunt-but-loving advice, and who never lets the chaos spiral past the point of repair.
Over the course of the series, Lily's arc moves from the group's "mom friend" to a fully realized adult navigating a career in teaching, a deep romantic partnership with Marshall, and eventually parenthood. Her relationship with Marshall is the show's most consistently tender romance—built on mutual respect, shared laughter, and the quiet understanding that they are each other's person. Their wedding, their struggles with fertility, and the arrival of their twins are among the series' most emotionally resonant storylines.
What makes Lily endure in fan memory is that she is never the loudest voice in the room, yet she is almost always the wisest. She mediates, she forgives, she shows up. In a show full of bravado and elaborate schemes, Lily is the steady hand, and Hannigan brings to her a warmth and dry wit that makes every scene she touches feel genuinely lived-in.
In Their Own Story
It's a Tuesday evening in late September, and the apartment smells like burnt garlic and the particular sadness of a rejected restaurant reservation. Marshall is pacing. Barney is doing a terrible impression of a waiter. Robin is on her sixth phone call to a different venue. Ted is staring at the ceiling, narrating nothing to no one. Lily sets down her red wine, pulls a crumpled napkin from the table, and says, in the quiet, unshakeable tone she reserves for moments like this, "Okay. Everyone stop. We're going to the Thai place. The one with the sticky tables. And nobody is allowed to make it about the tables." The room goes silent. Marshall stops pacing. Barney lowers his imaginary tray. And just like that, the chaos folds itself back into something manageable, because Lily said so, and because she always does.
Reader's Guide
Alyson Hannigan's contribution to How I Met Your Mother was less about spectacle and more about emotional architecture. As Lily, she gave the ensemble its moral center and its most consistently likable presence. Her delivery—dry, warm, slightly exasperated—became the show's tonal anchor in episodes that might otherwise have leaned too hard into Barney's antics or Ted's self-pity.
Behind the scenes, Hannigan's rapport with Jason Segel was foundational to the Marshall-and-Lily dynamic. The two reportedly developed much of their on-screen chemistry through improvisation and shared comfort, which translated into a partnership that felt genuinely lived-in rather than scripted. Producers and fellow cast members have spoken about how Lily's scenes often served as the emotional reset button after a particularly chaotic episode.
Fans remember Hannigan's Lily for the small things: the way she'd roll her eyes at Barney's latest scheme, the way she'd tuck a strand of hair behind her ear while delivering a devastatingly honest opinion, the way she'd appear in the background of a scene just to make a quiet, perfect joke. These micro-moments, accumulated over 208 episodes, built a character who felt less like a TV figure and more like the friend you actually call at 11 p.m. when everything is going wrong. That sense of intimacy is what made Lily—and by extension, Hannigan's performance—so enduring in the show's legacy.
Did You Know?
- Alyson Hannigan was already a major television star before joining HIMYM, having played Willow Rosenberg on Buffy the Vampire Slayer for seven seasons in the 1990s and early 2000s.
- Lily is the only main character whose occupation (elementary school teacher) remains consistent and central to her identity throughout the entire nine-season run.
- Hannigan's character Lily is the one who, in the show's framing device, is most directly connected to the narrator's (Ted's) children, making her a constant presence in the story's 'why we're telling this' structure.
- The Marshall-and-Lily relationship is the only main-cast romance in the series that is portrayed without a single major breakup-and-reconciliation cycle, making it a deliberate tonal contrast to the other couples' arcs.
