Disney Wiki
Disney Wiki

"Hat Trick" is the seventeenth 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 fairy tale counterpart, the Mad Hatter.

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


In Storybrooke

Mr. Gold and Sheriff Emma Swan return to the sheriff's office to see Henry Mills sitting there. He quietly congratulates Emma on helping Mary Margaret Blanchard 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. 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 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 and that if he is right, Mary Margaret is her mother. Emma 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 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' Pasts

In the Enchanted Forest, Jefferson is frantically running through the woods and ducks behind a tree. However, he is found a moment later by his daughter, Grace; 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 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 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 centre. 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 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. She knows that he helped the Evil Queen and has her aide the Knave of Hearts 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.



Guest Starring



  • Jefferson was allowed his memories and his mansion as a kind of apology from Regina for standing him in Wonderland.
  • How the Valet ended up in Wonderland would be revealed in "Souls of the Departed".



"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 USA drama Political Animals, which was later cancelled in August 2012. Stan would eventually return in the second season.[1]

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.[2][3]

Cultural references

There are multiple references made to Disney's 1951 animated and 2010 live-action versions of Lewis Carroll's Alice in Wonderland, although they slightly differ from both. Among them is the white rabbit, the tea party, the Queen of Hearts and the Mad Hatter's hat. In the beginning of the episode, as the queen leaves Jefferson's cabin in the woods, a notecard next to a bottle and cake allude directly to the tale. In the Storybrooke setting, Mary Margaret hits Jefferson with a croquet mallet that resembles the one featured in the animated film. In addition, Jefferson and Regina enter Wonderland through a mirror, a reference to Through the Looking-Glass, the sequel of Alice in Wonderland and a nod to how Alice gets to Wonderland in that novel. Another allusion involved the name Jefferson, a reference to Jefferson Airplane, who recorded a song that was titled "White Rabbit." Also, Jefferson's daughter Grace is a reference to Grace Slick, the lead singer of Jefferson Airplane/Starship.


External links

v - e - d
Once Upon A Time Logo.png
Shows: Once Upon a TimeOnce Upon a Time in Wonderland

Books: Once Upon a Time: Shadow of the QueenOnce Upon a Time: Out of the PastOnce Upon a Time: Red's Untold TaleOnce Upon a Time: Regina Rising
Special Bonus: Good Morning StorybrookeThree Who StayedTales From The Underworld: A Knight With Cruella

Once Upon a Time:
Season One: Emma SwanSnow White/Mary Margaret BlanchardPrince Charming/David NolanRumplestiltskin/Mr. Gold/WeaverEvil Queen/Regina Mills/RoniBelle/Lacey FrenchHenry MillsHappySneezy/Tom ClarkBashfulDocDopeySleepy/WalterJiminy Cricket/Archie HopperStealthyVictor Frankenstein/Dr. WhaleBlue FairyWidow Lucas/GrannyKing George/Albert SpencerGenie/Magic Mirror/Sidney GlassNurse RatchedMad Hatter/JeffersonPrince Henry/The ValetKnave of HeartsSheriff of Nottingham/KeithFairy GodmotherAbigail/Kathryn NolanRed Riding Hood/The Wolf/RubyHuntsman/Sheriff GrahamBaelfire/Neal CassidyPinocchio/August W. BoothFrederick/JimSevere NurseMayor TomkinsHansel and Gretel/Nicholas and Ava ZimmerThe Woodcutter/Michael TillmanMartinMyrnaStephenDonnaPrince JamesBlind WitchPeterSirenPongoGastonThe King/Mitchell HermanKing LeopoldKing MidasZosoPrince Thomas/Sean HermanGraceDaniel ColterNovaBriar RoseGeppetto/MarcoGus/BillyRuthDark One

Season Two: Killian Jones/Hook/RogersAuroraPrince PhillipMulanMilahMaid MarianQuinnAlphonse FrankensteinAnita LucasJackKing XavierAntonWilliam SmeeGreg MendellTamaraThe DragonQueen EvaSeerLancelotRobin HoodWendy DarlingNanaMary DarlingGeorge DarlingJohn DarlingMichael DarlingThe ShadowLost Boys
Season Three: Peter Pan/Malcolm/Pied PiperArielZelena/The Wicked Witch of the WestGlinda/The Good Witch of the SouthWalsh/Wizard of OzElsa the Snow QueenTinker BellBlackbeardLumiereUrsula the Sea GoddessJonathanDorothy GaleThe Witch of the EastRapunzelRapunzel's MotherRapunzel's FatherThe Sheriff of HamelinMedusaPrince EricLiam JonesRoland
Season Four: AnnaKristoffHansGrand PabbieSvenUrsula the Sea WitchMarshmallowLittle Bo PeepThe ApprenticeIngridLily PageColetteOakenKing of ArendelleQueen GerdaCruella De VilPoseidonDuke of WeseltonHans' BrothersChernabogKing StefanIsaac/The AuthorMadelineMerlin/The Sorcerer
Season Five: MeridaQueen EleanorKing FergusHarris, Hubert, and HamishThe WitchLord MacGuffinLord MacintoshLord DingwallKing ArthurSir KayGuinevereGorgon The InvincibleCharonBrennan JonesHadesMegaraHerculesCerberusThe ScarecrowTotoCleo FoxAuntie EmDr. JekyllMr. HydeEvil Queen
Season Six: AladdinGideonCount of Monte CristoAlexandraJasmineRed BirdCaptain NemoLady TremaineClorindaTisbeJacobOracleRoyal GuardsThe SultanBeowulfBlack FairyTiger LilyRobertPrince AchmedStanumCowardly LionLucy
Season Seven: Rapunzel Tremaine/Victoria BelfreyCinderella/Jacinda VidrioTiana/SabineAlice/TillyDrizella/Ivy BelfreyAnastasiaGothel/Eloise GardenerEudoraDr. Facilier/Mr. SamdiHansel/Jack/Nick BransonMarcus TremaineCeceliaCoven of the EightMadame LeotaNaveen/DrewBlind Witch/HildaGretelChadSeraphinaFloraIslaZorro

Once Upon a Time in Wonderland: AliceCyrusAnastasia/Red QueenPercy/White RabbitEdwinJabberwockySilvermistThe Sultan/The Old PrisonerTweedle Dee and Tweedle DumMrs. RabbitElizabeth/LizardAmaraBandersnatchMillie
Both series: Will Scarlet/The Knave of HeartsCinderella/Ashley BoydRobin HoodLittle JohnFriar TuckGrumpy/LeroyCora/The Queen of HeartsCaterpillarMaleficentJafarDr. Lydgate

Season One: "Pilot" • "The Thing You Love Most" • "Snow Falls" • "The Price of Gold" • "That Still Small Voice" • "The Shepherd" • "The Heart Is a Lonely Hunter" • "Desperate Souls" • "True North" • "7:15 A.M." • "Fruit of the Poisonous Tree" • "Skin Deep" • "What Happened to Frederick" • "Dreamy" • "Red-Handed" • "Heart of Darkness" • "Hat Trick" • "The Stable Boy" • "The Return" • "The Stranger" • "An Apple Red as Blood" • "A Land Without Magic"

Season Two: "Broken" • "We Are Both" • "Lady of the Lake" • "The Crocodile" • "The Doctor" • "Tallahassee" • "Child of the Moon" • "Into the Deep" • "Queen of Hearts" • "The Cricket Game" • "The Outsider" • "In the Name of the Brother" • "Tiny" • "Manhattan" • "The Queen Is Dead" • "The Miller's Daughter" • "Welcome to Storybrooke" • "Selfless, Brave and True" • "Lacey" • "The Evil Queen" • "Second Star to the Right" • "And Straight On 'Til Morning"
Season Three: "The Heart of the Truest Believer" • "Lost Girl" • "Quite a Common Fairy" • "Nasty Habits" • "Good Form" • "Ariel" • "Dark Hollow" • "Think Lovely Thoughts" • "Save Henry" • "The New Neverland" • "Going Home" • "New York City Serenade" • "Witch Hunt" • "The Tower" • "Quiet Minds" • "It's Not Easy Being Green" • "The Jolly Roger" • "Bleeding Through" • "A Curious Thing" • "Kansas" • "Snow Drifts" • "There's No Place Like Home"
Season Four: "A Tale of Two Sisters" • "White Out" • "Rocky Road" • "The Apprentice" • "Breaking Glass" • "Family Business" • "The Snow Queen" • "Smash the Mirror" • "Fall" • "Shattered Sight" • "Heroes and Villains" • "Darkness on the Edge of Town" • "Unforgiven" • "Enter the Dragon" • "Poor Unfortunate Soul" • "Best Laid Plans" • "Heart of Gold" • "Sympathy for the De Vil" • "Lily" • "Mother" • "Operation Mongoose"
Season Five: "The Dark Swan" • "The Price" • "Siege Perilous" • "The Broken Kingdom" • "Dreamcatcher" • "The Bear and the Bow" • "Nimue" • "Birth" • "The Bear King" • "Broken Heart" • "Swan Song" • "Souls of the Departed" • "Labor of Love" • "Devil's Due" • "The Brothers Jones" • "Our Decay" • "Her Handsome Hero" • "Ruby Slippers" • "Sisters" • "Firebird" • "Last Rites" • "Only You" • "An Untold Story"
Season Six: "The Savior" • "A Bitter Draught" • "The Other Shoe" • "Strange Case" • "Street Rats" • "Dark Waters" • "Heartless" • "I'll Be Your Mirror" • "Changelings" • "Wish You Were Here" • "Tougher Than the Rest" • "Murder Most Foul • "Ill-Boding Patterns" • "Page 23" • "A Wondrous Place" • "Mother's Little Helper" • "Awake" • "Where Bluebirds Fly" • "The Black Fairy" • "The Song in Your Heart" • "The Final Battle"
Season Seven: "Hyperion Heights" • "A Pirate's Life"• "The Garden of Forking Paths" • "Beauty" • "Greenbacks" • "Wake Up Call" • "Eloise Gardener" • "Pretty in Blue" • "One Little Tear" • "The Eighth Witch" • "Secret Garden" • "A Taste of the Heights" • "Knightfall" • "The Girl in the Tower" • "Sisterhood" • "Breadcrumbs" • "Chosen" • "The Guardian" • "Flower Child" • "Is This Henry Mills?" • "Homecoming" • "Leaving Storybrooke"

Once Upon a Time in Wonderland: "Down the Rabbit Hole" • "Trust Me" • "Forget Me Not" • "The Serpent" • "Heart of Stone" • "Who's Alice?" • "Bad Blood" • "Home" • "Nothing to Fear" • "Dirty Little Secrets" • "Heart of the Matter" • "To Catch a Thief" • "And They Lived..."

Once Upon a Time: Royal CastleBostonDark PalaceMaurice's CastleDark Castle/Rumplestiltskin's CastleLibraryKing's CastleTremaine estateMaurice's CastleDwarves' CottageDwarf MinesGeppetto's HomeNew York CityKing Stefan's CastleThe BeanstalkGiant's LairChinese VillageEnglandLondonDarling NurseryNeverlandBig BenSkull RockHamelinMaritime CastleRapunzel's TowerVault of the Dark OneLand of OzYellow Brick RoadEmerald CityArendelleValley of the Living RockArendelle CastleElsa's Ice PalaceWandering Oaken's Trading Post and SaunaBald MountainRing of StonesDunBrochWitch's CottageCastle DunBrochUnderworldMount OlympusPoppy FieldsAuntie's Chicken & WafflesCave of WondersPleasure IslandMagical ForestSeattleHyperion HeightsBelle & Gold's HouseFacilier's LairGothel's GardenTiana's PalaceSan FranciscoMemento MoriMaldoniaFlynn's BarcadeUnited RealmsSnow White's Farm

Once Upon a Time in Wonderland: Wonderland CastleThe Mad Hatter's HouseWhite Rabbit's HouseUnderlandTulgey Wood
Both series: StorybrookeMaineEnchanted ForestForbidden FortressWonderlandWonderland MazeAgrabahSherwood ForestThe Sultan's Palace

Once Upon a Time: Once Upon a Time (Book)Snow White's Glass CoffinRed Riding HoodMaleficent's StaffMagic WandGlass SlipperPoisoned AppleSpinning WheelMagic LampDark One's DaggerChipped CupJefferson's HatMagic BeansCaptain Hook's HooksEnchanted CandlePixie DustDreamshadeSalad ForkPandora's BoxSilver SlippersSorcerer HatEnchanted BroomTridentEnchanted ShellHeroes and Villains (Book)Merida's BowMagical RoseExcaliburOlympian CrystalCinderella's DressGolden Scarab BeetleRapunzel's Frying PanMagical Golden FlowerShrinking PotionFloating LanternsTarot CardsMaui's Fish Hook

Once Upon a Time in Wonderland: Vorpal Blade
Both series: Jafar's Snake StaffEnchanted HeartsJafar's Lamp

Songs Featured
"Give a Little Whistle" • "Heigh-Ho" • "With a Smile and a Song" • "Beauty and the Beast" • "Part of Your World" • "Fathoms Below" • "Cruella De Vil • "Some Day My Prince Will Come" • "The Unbirthday Song"

Original Songs: "Powerful Magic" • The Queen SingsLove Doesn't Stand a ChanceRevenge Is Gonna Be MineWicked Always WinsCharmings vs. Evil QueenEmma's ThemeA Happy Beginning

The Jolly RogerMagic CarpetRoyal ShipCruella's carNautilusCinderella's Coach
FairiesUnicornsDragonsBridge TrollsWerewolvesWraithOgresMermaidsKrakenFlying MonkeysRock TrollsWill O' the WispsFuriesMunchkinsTree Nymphs