Etymology
Today it means: A peg for hanging a hat. Full definition →
From hat + peg.
Etymology from Wiktionary, CC BY-SA 4.0.