A Chapel Royal for the knights of the thistle built by the Catholic-leaning King James Vl. BTW, Adam Smith (author of "The Wealth of Nations) was buried in its churchyard.