Etymology
Today it means: the structure supporting machinery above the entrance to an underground mineshaft. Full definition →
From head + frame.
Etymology from Wiktionary, CC BY-SA 4.0.