St Andrews Castle consists of the ruins of the castle of the Archbishops of St Andrews, dating in part from the 13th century. Notable features include a "bottle-dungeon" and mine and counter-mine tunnelled during the siege that followed the murder of Cardinal Beaton in 1546. These siege works are the finest of their kind in Europe.