St Giles' Cathedral.
St Giles' Cathedral, also called the High Kirk of Edinburgh, stands in the middle of the Royal Mile. A church was probably founded here in the 12th century and named after Saint Giles, the patron saint of lepers. The building you see was begun in the 14th century and grew until the early 16th century.
In 1559 it became a Protestant church, with John Knox, the leading figure of the Scottish Reformation, as its minister. After that, the inside was divided into several parts. At different times, parts of it served as a prison and as a meeting place for the Parliament of Scotland.
On 23 July 1637, King Charles I tried to bring in a new Prayer Book. It caused a riot inside St Giles', and this helped to start the Covenanters' movement and a long series of wars. Because of this history, St Giles' is called "the Mother Church of World Presbyterianism".
In the 19th century the church was restored. Between 1909 and 1911, the Thistle Chapel, designed by Robert Lorimer, was added. The services of the Order of the Thistle take place there.
Today St Giles' is a working church and one of Scotland's most popular sights. It had over a million visitors in 2018.