The Mad Hatter is often associated with “Alice in Wonderland,” but the character will be making an appearance in the third season of Fox’s “Gotham.”

The character, also known as Jervis Tech, will be played by “The Walking Dead” star Benedict Samuel, according to Entertainment Weekly.

He is described as “a talented hypnotist teetering on the edge of madness,” and he will first appear in the third episode of season 3.

The Mad Hatter has one important goal to achieve in Gotham, and that is to find his sister Alice, a young woman who went missing in the city several years ago.

Now, Comic Book has provided a first glimpse of the Mad Hatter’s mysterious lair, which is filled with clocks, chairs and all sorts of knick-knacks.

There are creepy dolls and mannequins hanging all over the place, while dollhouses and chess pieces adorn the lair. There are also tasty desserts such as cakes and teas on his table, but the vibe of his place is anything but inviting.

The show’s executive producer John Stevens earlier told the same publication that the Mad Hatter will be quite different from his “Alice in Wonderland” version.

"I feel like the character’s an amalgam as much anything," Stevens said. "There’s a little bit of the reality from the Brubaker books but also from the New 52 and the Snyder books. There’s some of that, too. From the Batman: Mad series in terms of the emotional drive that he has.”

Physically, Stevens said that Samuel also stands out. “Benedict [Samuel] is definitely taller than most versions of Jervis but he plays it with a level of naturalistic insanity that I think, he really fills out that pantheon really, really well. But, no, there’s no influence from the games.”

“Gotham” will return on Monday, Sept. 19, at 8 p.m. on Fox. Benedict Samuel Benedict Samuel plays Jervis Tetch, also known as the Mad Hatter in “Gotham” Season 3. The actor is seen here attending the screening of IFC Films' “Asthma” by Cinema Society And Northwest. Photo: Getty Images/Jim Spellman