Parapet Tower on a castle tower.
To protect soldiers on the walls from enemy missiles and the weather, timber shelters such as these were constructed on top of the castle battlements.