Battlements were the square-shaped part of the walls around the top of the castle. They usually had a walkway behind them so that soldiers could stand there when looking out for potential threats. They were also useful for soldiers who were defending the castle during an attack.