Mercury.
In the 19th century, hat makers (hatters) used mercury nitrate to treat felt for hats. Working in poorly ventilated workshops, they inhaled toxic mercury vapors, leading to chronic mercury poisoning. Symptoms included tremors ("hatter's shakes"), memory loss, irritability, shyness, and neurological deterioration—behaviors that inspired the "mad hatter" trope long before Lewis Carroll's Alice's Adventures in Wonderland (1865).