A rampart built around the top of a castle with regular gaps for firing arrows or guns. Also called battlements. Crenellations can be found in most European castles, and are particularily noticable as a feature of the Great Wall of China.
They look kind of like this:
|-------| |-------| |-------|
| | | | | |
| | | | | |
| | | | | |
-------| |-------| |-------| |------- ...