In addition to the cathedral in St. Andrews, there is also a castle ruin.
St. Andrews Castle was home to the bishops of the cathedral – yeah, the bishops, they lived in castles, too… This one figured quite prominently in the conflicts surrounding the Scottish reformation. One Protestant was burned at the stake, and then the townspeople stormed the castle and killed the Cardinal who’d ordered the execution.
From the grounds of the castle ruin, this is the look back toward the cathedral…