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.