The Hat hamwitch is a recurring monster in the Dragon Quest series, first appearing in Dragon Quest X. It is an enormous purple witch's hat that has taken control of a boar monster.
Unlike the rest of the piglet monsters, the hat hamwitch is classified as a material monster instead of a beast. This is due to the real monster being the hat itself, which has hitched a ride on the hog. The headpiece is possessed by the soul of its owner, a former Mage, which has taught the piglet how to cast spells in exchange for mobility.
Known as the Magical Hat in this game, it serves as a minor enemy, and as a boss in Chapter 2: Episode 10 - Dai Charges In.
As a boss, the Magical Hat has a Slash Resistance of -20, a Light Resistance of 20, a Poison, Wound and Sleep Resistance of 10 and a Stun Resistance of 20. It's Neutral to everything else.
The hat hamwitch shares its Japanese name with the Magical hat. This implies the monster itself is the hat it drops in battle, similar to the Hades helm.