St Andrews Castle occupies a dramatic clifftop position at The Scores in Fife, serving multiple roles throughout its approximately 450-year history as a bishop's palace, fortress, and state prison. The castle witnessed intense Protestant Reformation conflicts, including the famous 1546–47 siege where opposing forces excavated competing mines and countermines into the bedrock. The notorious bottle dungeon, carved from solid rock, held notable prisoners including Protestant preacher George Wishart and later the body of Cardinal Beaton. The imposing Hamilton Façade showcases refined Renaissance architecture reflecting the ambitions of its creator. Visitors can explore the castle and access the bottle dungeon via audio guides available on personal smartphones or museum devices, with online ticket booking available through Historic Environment Scotland.