St Mary's Loch is the largest natural loch in the Scottish Borders, and is situated on the A708 road between Selkirk and Moffat, about 72km south of Edinburgh. It is 5km long and 1km wide, and was created by glacial action during the last ice age. The loch is fed by the Megget Water, which flows in from the Megget Reservoir, and is the source of the Yarrow Water, which flows east from the loch to merge with the Ettrick Water above Selkirk.
The loch takes its name from a church dedicated to St Mary which once stood on its northern shore, although only the burial ground is now visible. Local legend has it that the loch has no bottom, and it is reputed to be the coldest loch in Scotland. Immediately upstream from St Mary's Loch is the smaller Loch of the Lowes. Between the two is Tibbie Shiel's Inn, an 18th-century coaching inn, which was frequented by the Border poet James Hogg . A statue of Hogg is located close to the inn. The Southern Upland Way and Sir Walter Scott Way long-distance walking routes both pass the shores of the loch. The small settlement of Cappercleuch is located at the north-west corner of the loch.