The medieval towns were surrounded by a moat and walls made of stone or brick. The walls had towers, round or square, designed both for defense and as a decoration. Nuremberg for example had more than eighty. Access in town was permitted only through the vaulted access gates which were closed at night.