Kirkwall is the largest town and capital of the Orkney Islands, off the coast of northern mainland Scotland. The town is first mentioned in the Orkneyinga saga in the year 1046. It was established as the settlement of Rögnvald II, Earl of Orkney, who was killed by his successor, Thorfinn.