expression

As mad as a hatter.

Theme: character Keyword: character

means

Extremely eccentric or apparently irrational (informal, sometimes jocular).

Example

His neighbours thought he was as mad as a hatter for building a boat in his living room.