The palace of the Grand Master, or Kastello, is built at the highest point of the medieval city, to the north-west, and its volumes dominate the city and its harbour. It was a strong structure, indissolubly linked with the fortifications, and played an active role in the defence of the city, forming the last refuge of the population in the event of the city falling to the enemy.