Margaret of Scotland, also known as Margaret of Wessex, was born in Hungary in 1045 to the English prince Edward the Exile and Agatha. A granddaughter of King Edmund Ironside, she grew up in a religious environment before returning to England with her family in 1057. After the Norman Conquest, she and her relatives fled north; in 1068, they found refuge in Scotland under King Malcolm III.
Margaret married Malcolm by the end of 1070 and became queen of Alba. Together they had 8 children, including 3 future kings of Scotland—Edgar, Alexander I, and David I—and Matilda, who became queen of England. Margaret influenced religious life at court and encouraged reforms intended to bring Scottish church practices closer to those of the continental church.
Her faith was closely tied to practical service. She cared for orphans and the poor, supported the establishment of a Benedictine monastery at Dunfermline, and arranged ferries to help pilgrims cross the Firth of Forth on their way to St Andrews. She also supported the restoration of Iona Abbey and worked to secure the release of English people forced into serfdom after the conquest.
Malcolm and their eldest son, Edward, were killed in battle on November 13, 1093. Margaret died at Edinburgh Castle on November 16, 1093, and was buried at Dunfermline Abbey. Pope Innocent IV canonised her in 1250. Her feast is observed on November 16 in the Roman Catholic Church and Anglican traditions; her remains and relics were later dispersed, and their present locations are unknown.