In 1787, Burns visited Stirling Castle, after which he returned to his hotel where he etched the now famous Stirling Lines.