The year is 2030. Ted Mosby is relaying the story of how he met his wife to his daughter and son. The story starts in the year 2005, when then twenty-seven year old architect Ted was spurred on to want to get married after his best friends from his college days at Wesleyan, lawyer Marshall Eriksen, who was his roommate at the time and kindergarten teacher Lily Aldrin, got engaged after nine years of dating each other. Ted's new quest in life was much to the dismay of his womanizing friend, Barney Stinson. But soon after Marshall and Lily's engagement, Ted believed that his life mate was going to be news reporter and aspiring news anchor Robin Scherbatsky, who, despite having had a romantic relationship with her after this time, ended up being who the kids know as their "Aunt" Robin. As Ted relays the story to his kids, the constants are that their Uncle Marshall, Aunt Lily, Uncle Barney and Aunt Robin are always in the picture and thus have something to do with how he got together with their mother.
While Barney prepares for his wedding to a mystery bride, he and Ted reminisce about Punchy’s wedding, including when Marshall and Lily announced they are having a baby. Meanwhile, Robin considers telling Barney she has feelings for him.
Marshall gets a great job offer that he fears may be scuttled by a social media background check. Ted needs a date for the Architects Ball.
Barney faces having to wear Marshall's ducky tie if he loses a bet with him. Meanwhile, Ted hopes to apologize to an ex for cheating on her.
After Robin assaults a girl who is out to ruin Barney's relationship, she is forced to begin court-mandated therapy sessions. Meanwhile, Ted gets too involved in Lily's pregnancy.
Marshall decides to step in after seeing his boss's approach to settling with a million dollar company. Ted's class trip isn't what he envisioned.
When Ted goes on a date without researching the girl on the Internet, the gang interferes, showing Kevin that they are too into each other's business. Meanwhile, Lily and Marshall come to terms with finding out the sex of their baby.
The gang begins to realize their romantic partner reminds them of one of their parents. Meanwhile, Barney and Nora's planned romantic evening is ruined by a string of bad events.
Ted finally meets his mystery girl in the Slutty Pumpkin costume. Meanwhile, Barney learns he is part Canadian, and Lily has pregnancy brain.
While the gang reminisces about Hurricane Irene, Barney tries to cut a deal with Marshall and Lily to get out of wearing the Ducky Tie.
Barney and Robin find themselves in an uncomfortable situation when they hide a secret from their significant others. Meanwhile, Marshall, Lily and Ted attend a concert.
Ted and Barney discuss making a life-changing decision together, and Robin tries to discourage Marshall and Lily from moving to Long Island.
Robin receives bad news and decides to hide it from the gang. Marshall hangs Christmas decorations in his house in the suburbs with some help from his neighbor.
After celebrating New Year's Eve, Marshall visits his father's graveside to carry on their tradition of tailgating. Meanwhile, Barney and Ted open a bar called "Puzzles," and Robin is forced to fill in for an inebriated news anchor.
Lily and Marshall officially move to the suburbs and realize that Lily's bossy father refuses to move out of their house. Meanwhile, the gang adjusts to them moving by going to a strip club.
Lily asks for her father's help when she and Marshall decide to throw a housewarming party. Marshall's boss gets under Ted's skin and the two nearly come to blows, and Barney puts the moves on a wacky divorcée.
Lily and Marshall invite Robin and Kevin on a Valentine's Day trip to Vermont. Kevin and Robin use the trip to talk about taking their relationship to the next level. Meanwhile, Barney realizes he has finally met his match.
When Robin breaks up with Kevin, Ted confesses his feelings to her. Meanwhile, Barney is on a mission to find something private of Marshall and Lily’s.
Barney continues his pursuit of Quinn. Ted has to deal with Robin's old room, while Robin gets a taste of suburban life from Marshall and Lily.
The gang tries to break up Barney and Quinn after learning they plan on moving in together, leaving Robin and Ted to fight over who deserves to sublet her apartment.
Ted, Marshall and Barney embark on another "trilogy time", where they get together every three years to watch the "Star Wars" trilogy and envision what their lives will be like in another three years. Meanwhile Barney and Quinn move in together.
Although Ted is happy with living alone at his new apartment, Barney tries to convince him about going out every night. Lily has a naughty dream about someone other than Marshall. Robin finally starts her stint as a news anchor at World Wide News.
Marshall panics when a baby shower indicates that the birth is close at hand and accidentally takes a road trip with Barney. Ted hallucinates seeing Robin while trying to get over her and decides to patch up their differences. Barney tries to talk Quinn out of being a stripper.
When Lily goes into labor, Ted and Robin distract her by telling her stories while Marshall hurries back from Atlantic City.
It's the year 2030 and an older Ted Mosby is telling the story to his son and daughter about how he met and will eventually marry their mother. This is where we meet for the first time Ted, Lily, Marshall, Barney and Robin.
Ted agrees to let Barney spice up his love life and ends up on a crazy adventure of flying to Philadelphia, encountering the law and visiting the Liberty Bell.
Ted's outlook on his continuing search for love is altered when he rediscovers a shirt that has not seen daylight in years. Meanwhile, Barney amuses himself by coaxing Robin into sacrificing her job by saying completely outlandish things on air live for a cash reward.
Ted makes his yearly pilgrimage to the rooftop Halloween party in search of a girl dressed as a pumpkin who he met years ago. Meanwhile, Robin is dumped after driving her new boyfriend away with her independent ways.
As Lily becomes more of a permanent fixture in the apartment, Ted feels like he is being edged out of the mix by his engaged roomies. Petrified of being left alone and homeless, Ted tells Marshall that when he and Lily are married, he wants the apartment. The problem is that Marshall wants to keep the place, too, so they settle it like real "grown-ups" -- launching into a sword fight that leaves one man down for the count.
Ted and Robin are surprised to run into Barney when they volunteer at a homeless shelter on Thanksgiving. Lily is on the brink of freaking out when she goes to Thanksgiving dinner at her future in-laws house.
After being forced into knocking back 5 shots, so he will stop thinking, Ted goes on a partying rampage. The next morning he wakes up with a woman in his bed, but he does not know who it is. So he turns to his friends to try and piece the night together and work out who the woman is in his bed.
Robin accepts Ted's invite to a friend's wedding, but thanks to Ted, the couple may never make it down the aisle.
Ted finds a new woman at the wedding. They want to remember the evening so they don't exchange last names or numbers; but Ted takes a big fall when he tries to find out her name.
After agreeing to take things slowly and not have sex for a month, Ted and Victoria decide that they have waited long enough.
A mysterious tape arrives for Barney from one of his numerous ex-girlfriends, and the entire gang watches it. But, in order for them all to find out how she broke Barney's heart and made him into a suit-wearing bachelor, everyone must share their most embarrassing moment.
Things are going great with Ted and Victoria's relationship, but when Victoria is offered her dream job, the couple have to make serious relationship decisions. Meanwhile Marshall and Lily set out to purchase their wedding outfits and find out that none can afford what they bought.
Robin, who is very lonely, asks Ted to come over to her apartment after 2 A.M., but he isn't sure if he wants to go as he has a phone call on the way over with his friends, and with Victoria on his mind
Robin is nominated to receive an award for a news report and everyone needs a date to take to the show. Barney introduces Ted to Mary as a date that Ted can take to the show. Originally Ted is opposed to the idea of just trying to save face in front of Robin but when she shows up with a date he changes his mind. Robin asks Mary lots of questions, and Ted begins to really like Mary, despite her occupation.
When a matchmaking company calls Ted claiming they have found his soul mate, he is forced to postpone his date when Lily asks for his help.
Barney attempts to hide the fact that he and Robin used to date, but Quinn finds out when sleep-deprived Marshall and Lily accidentally blurt it out. Meanwhile, Ted forces Victoria to write a left-at-the-altar note to Klaus explaining why she ran out on their wedding.
When Barney designs an extensive pre-nup, the guys take note and propose their own relationship amendments to their significant others. Meanwhile, Quinn is outraged and draws up a pre-nup of her own, which causes friction between the sexes.
When Lily and Marshall have trouble finding a nanny, they learn it’s because of an elaborate scheme Barney came up with to meet girls. Meanwhile, Robin and Ted butt heads over who has a more serious relationship.
When Lily and Marshall can’t decide on godparents for Marvin, they put the gang to the test to see who would make the best one.
As the season of break-ups continues, Ted and Victoria must choose the next step in their long and complicated relationship. Meanwhile, Robin worries about Barney when he chooses a dog to be his wingman.
When Robin is hesitant to break up with Nick, Barney takes matters into his own hands. Meanwhile, Lily and Marshall are desperate for some private time.
Marshall recommends his old law school classmate Brad for a job at his firm, but the interview goes awry, leaving Marshall to do damage control with his boss. Meanwhile, Robin helps negotiate Barney’s return to the strip club circuit.
Marshall takes on his old friend/new nemesis Brad in the biggest case of his career. Meanwhile, the gang reminisces about their own run-ins with the law, leading to a debate over who was the biggest delinquent as a teenager.
Robin is determined to get Barney back no matter what it takes. Meanwhile, Ted fills in as Marvin’s Nanny, leading Marshall and Lily to realize that Ted is using baby Marvin to replace his other baby, the GNB building.
Barney's developing relationship with Patrice leaves Robin questioning his motives. Marshall's widowed mother gets back into the dating pool, but he thinks she may be swimming with a shark.
Robin takes steps to have Patrice fired from WWN, while Marshall puts a jinx on Barney. Later, Ted invites his architecture professor to the dedication of the GNB building, and Marshall and Lily bump into an oddball acquaintance from college.
When Robin learns that Barney never asked her father’s permission before proposing, she insists that he seek his approval before announcing their engagement. Meanwhile, Ted keeps his feelings concealed by throwing himself into planning their wedding.
Barney begs Ted to continue seeing his much younger, much wilder girlfriend, even though Ted has nothing in common with her. Meanwhile, Robin must adjust to the power of the bling.
Barney uncovers the lost episode of Robin’s “Underneath the Tunes” as Robin Sparkles. Meanwhile, Marshall and Lily are concerned that Ted’s new girlfriend is a stalker.
Ted is reluctant to break up with his crazy girlfriend Jeanette. Meanwhile, Robin becomes attached to Marvin after finally holding him for the first time.
Ted gets a weird and surprising call from the Captain, which launches the gang into a series of recollections about the last perplexing encounter they had with him.
Barney's legendary relationship playbook, which Robin thought was destroyed, rears its head when Ted and Jeanette break up and Barney decides to use his chick manual to help Ted find a new girlfriend.
Barney reluctantly attempts to sell his apartment by holding an open house, during which Ted and Marshall get mistaken for a couple. Tension arises between Lily and Marshall when her new job causes her to spend less time at home.
Ted and Barney's future versions attempt to persuade present day Ted to go see Robots Versus Wrestlers. Marshall and Robin have a dance-off.
When The Captain asks Lily to move to Rome for a year as his art consultant, she fears that Marshall will resent her. Meanwhile, Ted and Barney become obsessed with a girl who is hiding her amazing body under a puffy coat.
The gang works together to plan a legendary bachelor party for Barney.
Robin desperately tries to locate the item that she buried in Central Park years earlier to wear as her "Something Old" for the wedding. Meanwhile, Marshall and Lily ask Ted to help them pack for Italy, and Barney invites Robin's father to play Laser Tag in order to bond with him.
As the gang prepares to go to Robin and Barney’s wedding, Ted invites Lily to see the house he's finally finished fixing up. Meanwhile, Robin and Barney’s night of relaxation is ruined by an obnoxious couple, and Marshall takes the baby on a last-minute trip to Minnesota to see his family.
On their way to Long Island for their wedding weekend, Robin and Barney come across a startling family discovery. Meanwhile, Marshall sees something online that changes the course of his journey east, while Lily confronts Ted about letting go of Robin.
When Lily discovers Ted’s list of things he wants to do in New York before he moves for Chicago, she becomes frustrated that she is the only person who knows about his plans. Meanwhile, Robin and Barney realize they have very little time together before their relatives arrive for their wedding.
While Barney works through his anger at Ted after finding out he still has feelings for Robin, Marshall Skypes in to act as a judge and help settle their dispute. Meanwhile, Lily realizes she is Robin’s only girlfriend.
When Barney is forced to pick sides in a fight between Robin and his mother, Lily coaches him on how not to ruin his relationship. Meanwhile, Ted and Marshall get into a dispute over wedding gifts and thank-you notes.
When Ted finds himself with three prospects to be his date for the wedding weekend, he chooses poorly. Meanwhile, Barney and Robin have a confrontation with their minister, and Marshall learns more about his driving companion, Daphne.
When Daphne sends a troubling text message to Lily, Marshall enlists the gang’s help to remove the message while enforcing the “No Questions Asked” rule.
When Robin and Loretta's conflict escalates, Barney is caught in the middle. Meanwhile, Marshall and Daphne deal with a stowaway on their road trip, and Ted and Cassie try to enjoy a trip to a lighthouse.
In a flashback episode, the gang ponders the future of the Ted, Robin and Barney love triangle. Meanwhile, Barney accepts a series of challenges from Lily and Robin.
When Barney’s father arrives at the hotel, Barney devises a plan that makes Robin very nervous. Meanwhile, Ted is convinced someone framed him by messing up a wedding-related duty.
Marshall tries to get Marvin to sleep by reciting three rhyming bedtime tales about his friends as they wind down their epic cross-country journey.
Barney is shooting to have the rehearsal dinner at a laser-tag venue, while Lily is upset when Ted fails to live up to a promise.
The gang encounters a guy at the wedding who intentionally stirs up trouble among them, and Marshall finally arrives at the Farhampton Inn.
In an attempt to deliver a devastating final slap to Barney, Marshall explains how he mastered the Slap of A Million Exploding Suns.
When Barney drinks too much, Ted and Robin take advantage of him and get him to reveal secrets he’s been hiding for years. Meanwhile, Marshall does everything he can to avoid fighting with Lily.
On the 200th episode, The Mother recounts how she met Ted and what she’s been up to for the past eight years.
Robin and Ted reminisce about past relationships as they search for a drunken Barney on the day of the wedding. Lily and Marshall come to a resolution. Barney befriends two men who are eager to meet women.
When Barney suffers from the world’s worst hangover the morning of his wedding, the gang tries to figure out the far-fetched ingredients to concoct the Stinson Hangover Fixer Elixir.
On the morning of the wedding, Lily and Robin have a fight and Barney freaks out about which suit to wear. Meanwhile, the gang watches a movie Ted has forbidden them to see.
Marshall enlists Ted and Barney to help him figure out where Lily went when she left in the middle of their fight.
Gary Blauman shows up at Barney and Robin's wedding, sending the gang into a frenzy about which table to seat him at. Through their debate, they realize each of them either hates or loves Gary. Meanwhile, in the year 2014, Ted and The Mother go out on their first date.
With only a half-hour to go, both Barney and Robin have panic attacks about their upcoming nuptials. Meanwhile, Marshall and Lily rewrite their old wedding vows.
Ted finally finishes telling his kids the story of how he met their mother.
When Marshall and Barney argue over the destruction of the Arcadian Hotel, Robin and Lily try to mix the right combination of cocktails that will force them to make up. Meanwhile, Ted plans a romantic weekend away with Zoey.
When Ted is faced with an important decision that might affect his future with Zoey, the gang expresses their true feelings about her.
Robin and Barney bond when they intervene in Ted's relationship, and Marshall and Lily watch a ticking clock as he fears that he soon will be the victim of food poisoning.
Barney meets his father and is shocked by the differences in their lives. The rest of the gang learn their "gaps"; knowledge they should have by now, but don't.
Lily and Barney react badly when Marshall finally quits his job at Goliath National Bank to take a volunteer position at an environmental organization. Meanwhile, Ted and Zoey's opposing positions on the future of the Arcadia come between them.
When Barney tries to bond with his father, he asks the gang to help make his life seem more exciting by lying about their own lives. Meanwhile, Robin runs into a guy she has a crush on.
When Barney starts to have real feelings for Nora, he worries that something is wrong with his heart. Meanwhile, Robin starts dating a guy who acts a lot like a dog.
When Ted and Barney argue about who has "dibs" on a hot girl, Ted realizes that she is there with Cindy, a girl he previously dated who is also the roommate of his future wife. Meanwhile, Robin is heartbroken over Don, and Marshall can't keep quiet about his desire to start a family.
When Barney convinces the gang to help his mom move out of her home, they quickly learn that she has been very protective of Barney and lied to him about events throughout his life. Meanwhile, Ted gets upset when Robin oversells him to a blind date.
Barney uses his best womanizing tactics to try to convince Ted to design the new GNB building; Robin drunk dials Don.
When the gang teases Robin about not being a real New Yorker, she sets out to prove them wrong by racing to catch a glimpse of Woody Allen.
Ted becomes conflicted after meeting an attractive woman who is passionate about saving the landmark building being torn down for his new project.
Marshall and Lily try to figure out how to conceive a baby with the gender of their choice; Robin's perky new co-anchor irritates her.
When Zoey enrolls in Ted's class, she manipulates his students into taking her side in the fight to save the building being torn down to make room for his project. Meanwhile, Marshall and Lily spot Robin marching in the Halloween parade of shame.
When the gang goes to a black tie event at the Natural History Museum, Ted gets introduced to Zoey's husband, The Captain.
Barney's discovery of a Canadian kids show called Space Teens, that Robin appeared on as Robin Sparkles, leads the gang to get her to reach out to her co-star, Jessica Glitter.
When Ted leaves the bar early to prepare a Thanksgiving feast for his friends, the gang winds up partying all night with The Blitz, an old friend from college who has bad luck. As a result Ted is forced to spend Thanksgiving with Zoey.
When Ted's new friendship with Zoey tests the theory that single men and married women can't be friends, he invites her husband, "The Captain," to hang out with them. Meanwhile, Marshall and Robin decide to spend alone time together, and Barney and Lily possibly have a fight.
Lily and Marshall receive shocking news that has a profound impact on the gang. Ted begins his duties as best man for an old friend's wedding.
Afraid they will never get pregnant, Lily and Marshall decide to see a specialist. Robin begins her new job.
While on a trip to Minnesota, Ted and Barney try anything to make Marshall laugh. Marshall runs into an old nemesis from high school.
Barney gets emotional when he opens up to Honey about his life. Ted admits to having feelings for Zoey to the group.
Barney declares February 13th a holiday for desperate women. Marshall receives a Valentine's Day surprise from Lily. Zoey and Ted work on figuring out their relationship.
Marshall becomes obsessed with saving the environment after seeing a documentary on garbage. Ted runs into The Captain. Barney admits he has feelings for a woman.
When Ted, Marshall, Lily and Barney crash a highfalutin party at a swanky New York apartment, Ted gets the chance to mingle with the snooty guests and show off his intellectual side.
When Ted takes a date to see a new hit movie, "The Wedding Bride," he is shocked to learn the story is loosely based on his life, and that it was written by Tony, the man Stella left him for at the altar.
Marshall and Lily make a secret pact to start trying to have a baby if they ever finally see Barney's doppelganger. Meanwhile, Robin finally gets an offer for her dream job.
When Ted attends his mother's wedding, he is extremely disturbed by her overly affectionate relationship with her fiancé, which forces him to think about his own life and make an impulsive decision.
When Ted and Barney jeopardize Robin's new relationship by professing their love for her, Robin realizes that she is finally over them. Meanwhile, after spending a weekend sleeping in twin beds, Marshall and Lily decide to get twin beds at home.