Thanks to a word puzzle, today I learned about Machicolation:
a floor opening between the supporting corbels of a battlement, through which stones or other material, such as boiling water or boiling cooking oil, could be dropped on attackers at the base of a defensive wall.

Brilliant word I’d never heard before. My 9-year old approves of boiling oil for defensive measures.