 The strongly fortified citadel dates from medieval period of Portuguese history, and is one of the main tourist sites of Lisbon.The castle's footprint is roughly square, and it was originally encircled by a wall, to form a citadel.The castle complex consists of the castle itself (the "castelejo"), some ancillary buildings (including the ruins of the royal palace), gardens, and a large terraced square from which an impressive panorama of Lisbon is visible.