Hat Trick
Season 1, Episode 17
MV5BMzY0MDY0MjIzM15BMl5BanBnXkFtZTcwODc1NDg1Nw@@. V1
Airdate March 25, 2012
Written by Vladimir Cvetko & David H. Goodman
Directed by Ralph Hemecker
Episode Guide
Heart of Darkness
The Stable Boy
Hat Trick is the 17th episode of the American fairy tale/drama television series Once Upon a Time, which aired in the United States on ABC on March 25, 2012.

The series takes place in the fictional seaside town of Storybrooke, Maine, in which the residents are actually characters from various fairy tales that were transported to the "real world" town by a powerful curse. This episode centers on Jefferson (Sebastian Stan) and his fairytale counterpart, the Mad Hatter.

It was co-written by David H. Goodman and Vladimir Cvetko, while Ralph Hemecker directed the episode.

View the Hat Trick Gallery.


Opening Sequence

Mushrooms from Wonderland loom in the forest.

In Storybrooke

Mr. Gold (Robert Carlyle) and Sheriff Emma Swan (Jennifer Morrison) return to the sheriff's office to see Henry Mills (Jared S. Gilmore) sitting there. He quietly congratulates Emma on helping Mary Margaret Blanchard (Ginnifer Goodwin) escape, but Emma does not know what he is talking about. Mr. Gold tells Emma that Mary Margaret is no longer in her jail cell. Emma states that if it is discovered that Mary Margaret escaped, proving her innocence would be impossible and sets out to find her. Mr. Gold reminds Emma that her future is in jeopardy if she is found helping Mary Margaret. She tells him that she would rather lose her job than her friend. As Emma is driving through the woods, she nearly hits a man (Sebastian Stan). She apologizes and when she notices he is limping, she offers to drive him home. He takes up her offer and introduces himself as Jefferson. At his mansion, he gives her a map to aid her in her search and brings her tea. However, the tea makes her dizzy, and he drags her to the couch. She notices that he is no longer limping. He admits that she caught him, and she loses consciousness.

Emma wakes up bound and gagged on the couch. She crushes her teacup and uses the pieces to free herself. While sneaking around the mansion, she sees Jefferson sharpening scissors, then accidentally steps on a loose floorboard. She hides in the nearest room and finds Mary Margaret also bound and gagged. She frees Mary Margaret, who tells her that she was running through the woods and was captured by Jefferson. She explains that she found a key in her cell and used it to escape. The pair try to leave the mansion, but they are caught by Jefferson who is armed with Emma's gun. He orders Emma to tie Mary Margaret back up and gag her and tells her that he has a task for her. In the next room, he seats her at a table with a hat and some tools and tells her to make him a hat. He reveals that he remembers life in the Enchanted Forest and that he is aware of the curse. He tells her that he lived trapped in the mansion for twenty-eight years, stuck doing the same things every day. He knows that Emma refuses to believe in the curse or acknowledge the facts about Storybrooke. He orders her to make him a magical hat, and only she can do it as she brought magic to Storybrooke. She realizes that he thinks he is The Mad Hatter, but he tells her that he is named Jefferson. She calls him insane for believing she has magic and for believing in magic at all. He replies that everyone wants a magical solution to their problem and everyone refuses to believe in magic. When she tries to tell him that the real world does not have magic, he scoffs and tells her that there are many worlds and some have magic, some do not, and some need it. He refuses to let her and Mary Margaret go free until Emma makes a working, magical hat. When she asks what will happen if the hat works, he answers that he will go home.

Later, Emma becomes frustrated and demands to know why she is doing this. Jefferson shows her a telescope pointed at the house of a little girl. He tells her that the little girl is his daughter Grace, who is named Paige in Storybrooke. He explains that he is cursed to remember life in the Enchanted Forest and know that he does not belong in this world. He is tortured to watch Grace live a happy life with a new father. Emma asks why he does not simply reach out to her, but he says that he is not cruel enough to destroy Grace's reality and inflict on her the same awareness he has. He explains that it is hard enough to live in a land where you do not belong, but knowing it, holding conflicting realities in your head will drive anybody mad. He wants to take her home to the world where he and Grace once lived so that they can be together and she can remember who he is. Emma tells him that she knows what it is like to be separated from a child and tells him that it feels like going crazy. He tells her that he is not crazy. Emma says that if he is right, Mary Margaret is her mother and states that she would like to believe that more than anything in the world. She agrees to try and believe in magic and make his hat work. However, when his back is turned, she hits him with the telescope and frees Mary Margaret. Jefferson catches up to Emma and attacks her. While they are fighting, Emma notices a scar around his neck. Mary Margaret hits him with a croquet mallet and kicks him out the window. When Mary Margaret and Emma look down, only the hat Emma made remains. Emma finds her car and her keys outside. Mary Margaret expects to be taken back to prison, but Emma allows her to decide. When Mary Margaret does not understand, Emma explains that Mary Margaret is the only family Emma has and says that it would be better to face the trial together rather than alone. Mary Margaret willingly goes back to her cell.

Hours later, Mayor Regina Mills (Parrilla) finds that Emma's car is not parked outside the sheriff's office. However, she discovers that Mary Margaret is in her cell. Mr. Gold tells Regina that his client is not seeing any visitors. As they walk out together, Regina angrily asks him why Mary Margaret has returned. He replies that Emma must be more resourceful than they had hoped she would be. Regina tells him that she only planted the key upon his suggestion and that she made a deal with him because she wanted results for herself. He assures Regina that she will get those results. Meanwhile, Emma visits Henry at his school before classes start. Paige walks by and greets Henry, prompting Emma to ask to see Henry's storybook. She finds pictures of Jefferson and his daughter Grace inside.

In the Characters' Past

In the Enchanted Forest, Jefferson (Stan) is frantically running through the woods and ducks behind a tree. However, he is found a moment later by his daughter, Grace (Alissa Skovbye); they are playing hide-and-seek. They happily go off to find mushrooms to sell at the market. But when they return home, they see that the carriage of the Evil Queen (Lana Parrilla) is waiting outside. Jefferson tells the frightened Grace to hide in the woods until the Queen is gone. He enters the house to find the Queen. She wants one last favor from Jefferson, offering Grace luxury for the rest of her life as a reward after Jefferson's accomplishing a deed. He refuses, stating that his job cost Grace her mother and he will not allow her to lose her father as well. He finally tells the Queen that there is nothing more important than family. The Queen agrees, and leaves.

At the market the next day, Grace sets her heart on a stuffed white rabbit as it will be perfect for her tea parties. Jefferson is unable to afford the price of one silver, but tries to convince the elderly merchant to accept his eight coppers. The merchant refuses. Grace assures Jefferson that she does not need it and they leave. The merchant goes to the back of her cart, where the Magic Mirror (Giancarlo Esposito) states that she is truly cruel. The merchant is revealed to be the Evil Queen. Back at home, Jefferson has sewn a rabbit for Grace. She is delighted and adds it to her tea party guests. Jefferson is clearly troubled. He asks Grace to spend the rest of the day with the neighbors as he has work to do. She wants to go with him as she likes to work with him in the forest, but he tells her he is not going to the forest. She realizes that his work is related to the Queen's visit and she begs him to change his mind. He says that he wants her to have everything she needs. She replies that she only needs him and asks him to stay. He refuses, but promises to be home in time for the next tea party. After Grace is gone, Jefferson takes a large hat box out of his trunk.

Jefferson brings his box to the Queen and has her promise that his daughter will want for nothing after he retrieves what she has lost. After she agrees, he takes a top hat out of the hat box and sets it on the floor. He spins it and the hat continues spinning until it grows into an enormous spinning portal. The Queen and Jefferson jump into it and land in a room full of different doors. He leads the Queen to a mirror. Before they step through, he explains that the hat has a rule: the number of people who go into a door must be the same number as those who come out. The two of them go through the mirror. They step into a land with very tall grass and giant mushrooms. They pass an enormous blue caterpillar smoking a hookah. It asks who they are and blows smoke rings into their faces. Jefferson coughs and mutters that he hates Wonderland. The pair come upon the Queen of Hearts's hedge maze where the Evil Queen wishes to go to the building in the center. Jefferson refuses out of fear of the Queen of Hearts, but the Evil Queen reminds him that he cannot leave without her. He cautions that the hedges eat whatever comes too close, but she burns a straight path to the building with magic. The Evil Queen takes a small box from the building, causing guards to appear. They are able to narrowly escape.

She and Jefferson hurry back to the mirror, but the Evil Queen stops to take a piece of the mushroom. She places the piece into the box, and her father Henry (Tony Perez) appears out of the box. Jefferson is horrified. He realizes that the Queen knew about the hat's rule and did not tell him that her father was abducted by the Queen of Hearts for leverage on purpose. Because there are now three people, one of them cannot leave Wonderland. Jefferson's feet become stuck to the path, and he begs the Evil Queen to let him go back to his daughter. She tells him that if he cared for Grace, he would have never left her. The Evil Queen and Henry walk through the mirror and leave Jefferson behind staring at the mirror in a daze as guards drag him away.

Jefferson is presented to the Queen of Hearts (Jennifer Koenig). She knows that he helped the Evil Queen and has her aide the Knave of Hearts (Paul McGillion) ask how they got into Wonderland. He says that he will tell her only after he is allowed to go home to his daughter. The Queen of Hearts orders him beheaded, and he is decapitated, though to his horrified surprise he remains alive. He is told that if he wants his head reattached, he must answer the question. He tells the Queen of Hearts about his hat. When asked about the hat's whereabouts, he says that the Evil Queen took it. The Queen of Hearts tells him that if he only requires the magical hat to return home, he only has to make another. However, he replies that he cannot: a hat without magic is just a hat and will not work. The Queen of Hearts tells him that his task is to get a hat to work. Afterwards, he is seen in a large room filled with hats, making another hat and frantically muttering to himself to get it to work.


"Hat Trick" was co-written by Vladimir Cvetko and co-executive producer David H. Goodman, while Silk Stalkings veteran, Ralph Hemecker, served as director for the episode. The Who's Roger Daltrey made an uncredited cameo appearance as the voice of the hookah-smoking caterpillar (that only says "Who...Are...You?).

This episode was the first of several for actor Sebastian Stan, as his character, Jefferson, recurred in two more episodes during season one. Producers stated that there was a possibility for him to return in season two, but that was before Stan became a series regular on the upcoming limited run USA drama Political Animals. Stan would eventually return in the second season.

The episode was included in Reawakened: A Once Upon a Time Tale – a novelization of the first season – which was published by Hyperion Books in 2013.


  • When Jefferson takes Regina through the hat they end up in a room filled with doors into different worlds. One door, close to the Looking Glass, is emerald green with two golden door handles. The handles are each a golden "O" with a smaller golden "Z" in the center, signifying that this door leads into Oz, the world in the Wizard of Oz story.
  • When the Queen and Jefferson walk into Wonderland the Caterpillar, voiced by Roger Daltrey of The Who, greets them with the iconic line "Who are you?", which is also a song by the band.
  • The outside of Jefferson's house is the same house used as Johnny Smith's house in The Dead Zone (1983), which also takes place in Maine.
  • The object/animal/person in this episode is Wonderland's mushrooms and flying birds.
  • The object with which Mary Margaret knocks out Jefferson is a croquet mallet, from the same game that the Queen of Hearts plays.
Season 1
PilotThe Thing You Love MostSnow FallsThe Price of GoldThat Still Small VoiceThe ShepherdThe Heart Is a Lonely HunterDesperate SoulsTrue North7:15 A.M.Fruit of the Poisonous TreeSkin DeepWhat Happened to FrederickDreamyRed-HandedHeart of DarknessHat TrickThe Stable BoyThe ReturnThe StrangerAn Apple Red as BloodA Land Without Magic
Season 2
BrokenWe Are BothLady of the LakeThe CrocodileThe DoctorTallahasseeChild of the MoonInto the DeepQueen of HeartsThe Cricket GameThe OutsiderIn the Name of the BrotherTinyManhattanThe Queen Is DeadThe Miller's DaughterWelcome to StorybrookeSelfless, Brave and TrueLaceyThe Evil QueenSecond Star to the RightAnd Straight On 'til Morning
Season 3
The Heart of the Truest BelieverLost GirlQuite a Common FairyNasty HabitsGood FormAriel (Episode)Dark HollowThink Lovely ThoughtsSave HenryThe New NeverlandGoing HomeNew York City SerenadeWitch HuntThe TowerQuiet MindsIt's Not Easy Being GreenThe Jolly RogerBleeding ThroughA Curious ThingKansasSnow DriftsThere's No Place Like Home
Season 4
A Tale of Two SistersWhite OutRocky RoadThe ApprenticeBreaking GlassFamily BusinessThe Snow QueenSmash the MirrorFallShattered SightHeroes and VillainsDarkness on the Edge of TownUnforgivenEnter the DragonPoor Unfortunate SoulBest Laid PlansHeart of GoldSympathy for the De VilLilyMotherOperation Mongoose
Season 5
The Dark SwanThe PriceSiege PerilousThe Broken KingdomDreamcatcherThe Bear and the BowNimueBirthThe Bear KingBroken HeartSwan SongSouls of the DepartedLabor of LoveDevil's DueThe Brothers JonesOur DecayHer Handsome HeroRuby SlippersSistersFirebirdLast RitesOnly YouAn Untold Story
Season 6
The SaviorA Bitter DraughtThe Other ShoeStrange CaseStreet RatsDark WatersHeartlessI'll Be Your MirrorChangelingsWish You Were HereTougher Than the RestMurder Most FoulIll-Boding PatternsPage 23A Wondrous PlaceMother's Little HelperAwakeWhere Bluebirds FlyThe Black FairyThe Song in Your HeartThe Final Battle
Season 7
Hyperion HeightsA Pirate's LifeThe Garden of Forking PathsBeautyGreenbacksWake Up CallEloise GardenerPretty in BlueOne Little TearThe Eighth WitchSecret GardenA Taste of the HeightsKnightfallThe Girl in the TowerSisterhoodBreadcrumbsChosenThe GuardianFlower ChildIs This Henry Mills?HomecomingLeaving Storybrooke
Down the Rabbit HoleTrust MeForget Me NotThe SerpentHeart of StoneWho's AliceBad BloodHomeNothing to FearDirty Little SecretsHeart of the MatterTo Catch a ThiefAnd They Lived...
Community content is available under CC-BY-SA unless otherwise noted.