Saint Margaret of Scotland (c. 1045 – 16 November 1093), also known as Margaret of Wessex, was an English princess of the House of Wessex. Born in exile in Hungary, she was the sister of Edgar Ætheling, the short-ruling and uncrowned Anglo-Saxon King of England. Margaret and her family returned to England in 1057, but fled to the Kingdom of Scotland following the Norman conquest of England of 1066. Around 1070 Margaret married Malcolm III of Scotland, becoming Scottish queen.
Throughout her life she attended to charitable works, serving orphans and the poor every day before she ate, and washing the feet of the poor in imitation of Christ. She rose at midnight every night to attend church services. She invited the Benedictine order to establish a monastery at Dunfermline in Fife in 1072, and established ferries at Queensferry and North Berwick to assist pilgrims journeying from south of the Firth of Forth to St. Andrews in Fife. A cave on the banks of the Tower Burn in Dunfermline was used by her as a place of devotion and prayer.
Amongst her other deeds, Margaret also instigated the restoration of the monastery at Iona. She is also known to have been an intercessor for the release of fellow English exiles, forced into serfdom by the conquest. In her private life, Margaret was as devout as she was in her public duties. She spent much of her time in prayer, devotional reading, and ecclesiastical embroidery.