“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.