They are sometimes referred to as the Odd Couple - the belligerent, warlike and bloodthirsty King of Scots and the beautiful, gentle and deeply religious queen he loved and adored.
Malcolm Canmore was the monarch of Scotland who created a royal dynasty which ruled for 200 years. But it was hid wife Margaret who really captured the hearts of the people, and who is loved and revered to this day as our only female saint.
St Margaret of Scotland was a remarkable woman who combined toughness, determination and discipline with real compassion, devotional piety and - above all - genuine concern for the poor.
She literally gave away the King's gold, personally fed and washed some of the lowliest peasants in the land, and would give away her own fine clothes to put on the backs of starving beggars.
As a result, she became the most loved royal Scotland has ever produced, and she is still so highly regarded to this day that both Catholics and Protestants put aside their modern differences to pay their respects to her.
Yet this remarkable woman who is still venerated nearly 1000 years after her birth wasn't actually Scottish at all. She was a Hungarian who had gone to England to live - and it was only the hand of fate which brought her here.
Margaret was born about 1046 in Castle Reka in southern Hungary. But her father, Edward the exile, had a legitimate claim to the English throne, and was sent for in 1054 to replace the ailing Edward the Confessor as English monarch.
Unfortunately, her father died almost as soon as he arrived, but Margaret and her mother Princess Agatha were invited to stay on at the English court. They lived a comfortable life, and the young girl grew up studying religion, Latin and English. It was at the English court that she first met Malcolm, who sought sanctuary there after the murder of his father Duncan by Macbeth.
Things started to go seriously wrong for Margaret, however, when William the Conqueror invaded England and won the Battle of Hastings in 1066. With a new Norman dynasty on the English throne, she and her family were advised to flee to Hungary.
They made their escape attempt, but wild storms blew their ship north until it eventually came to land at a sheltered cove on the north bank of the Forth - a spot now known as St Margaret's Hope.
News of their arrival quickly spread, and Malcolm himself made his way down from the royal palace at nearby Dunfermline to see what was going on. He was astonished and delighted to find that it was the girl he had known since childhood, now grown into a beautiful young woman.
Malcolm invited her to his court, and, having suffered the death of his first wife Ingibiorg, it wasn't long before he asked Margaret to marry him. The fact that she didn't say yes straightaway says a huge amount about her strength of character.
Most women would have pounced on a marriage proposal from a King, but it caused Margaret great trouble and worry. She had made her mind up to serve God by entering a convent, and knew that being Queen would be a much harder and more difficult task carrying real responsibilities. However - perhaps because she believed God was testing her - she accepted.
What is particularly interesting about the partnership between Margaret and Malcolm is that in an age when most royal marriages were forged for convenience or political purposes, they genuinely loved each other. She bore him no less than eight children, three of whom - Edgar, Alexander I and David I - were to themselves become kings of Scots and so secure the Canmore dynasty for hundreds of years.
The author and historian Father Mark Dilworth, who is a former Keeper of the Scottish Catholic Archives, says that the pair had huge affection for each other. "He loved her and tolerated her habits, such as giving his gold away to the poor. In his own way, he'd probably say 'girls will be girls'. It looks as if she had him eating out of her hand. Margaret seems to have originally wanted to be a hermit or a nun, but then decided it was her duty to be a Christian queen or mother."
Clearly the feisty Margaret came to an arrangement with Malcolm that things were going to be done her way. Her generosity and compassion were legendary. In the constant wars between Scots and English, for example, prisoners were always being brought back to be used a slaves. Margaret would buy the men off their captors, and then free them.
It is also said that no-one was ever turned away from her palace gates empty. She is said to have personally washed the feet of the poor during Lent, maintained those who could not look after themselves, taught religion to orphans, and fed 300 staving peasants in the royal hall at Dunfermline while she herself fasted. On occasion, she would literally give beggars the clothes off her back.
Malcolm, who is regarded as one of the fiercest and most devious warrior kings Scotland has ever produced, did nothing to stop her. He would even let her raid the common purse to feed the poor.
Only one thing outshone Margaret's commitment the poor: her piety before God. She regularly spent time in contemplative prayer, and her brilliant mind and first class education meant she could - and would - argue with and make suggestions to the religious leaders of the day.
Under her direct influence, the church began to keep a stricter Lenten and Easter observance and also attempted to maintain Sunday as a holy day of rest. Margaret personally attended many church councils, and invited three Benedictine monks from Canterbury to found a priory in Dunfermline - the first of a wave of monastic foundations in Scotland.
Like many Scots, she also venerated the shrine of the apostle Andrew at St Andrews and established a ferry across the Forth to take pilgrims there. The landing sites on both banks of the river are still known as North and South Queensferry.
For much of the time, however, Margaret was left on her own at the Scottish court. Malcolm spent months in conflict with the English, regularly mounting invasions which rarely came to anything. The Normans began the construction of a "New Castle" on the Tyne to keep him out, with a similar structure at Carlisle being built by the Conquerer's successor William Rufus.
By this period in Scottish history, Edinburgh was beginning to emerge as a town of some size, and the court would often move there, to convene on the spot now occupied by the castle. Margaret is said to have hated the place, though her son David - later to himself be king - built Queen Margaret's Chapel, which still stands within the castle precincts today, in her honour.
The marriage between Malcolm and Margaret lasted a remarkable 23 years, and only ended when another of the King's interminable assaults on northern England went tragically wrong. On 12 November 1093, he was cornered and killed - some say by trickery - in an assault on Alnwick in Northumberland. His son Edward died in the same battle.
For Margaret, who was already gravely ill in Edinburgh, the news of the death of her beloved husband and son was more than she could take. She died of a broken heart four days later, and her body was taken back to Dunfermline for burial.
Although clearly a good person, what made her so special that she was made a saint by the Pope in 1250? Mark Dilworth believes that her reputation for helping the poor and as a good mother would have led ordinary Scots people to venerate her long before her eventual canonisation.
"You have to remember that the rules over making saints weren't as rigid then. Pregnant women would pray to her because she'd had so many pregnancies herself. It's said that a nightshirt she put on was known as Queen Margaret's Sark and worn by all subsequent Scottish Queens when they gave birth, quite possibly down to Mary Queen of Scots.
"I would imagine that subsequent kings and queens would have come up with a few cures and things like that to help her on the path to sainthood. The cave in Dunfermline where she used to pray is venerated to this day, and it's not just Catholics who feel an affection for her. Members of the Church of Scotland have a great love of her as well."
In subsequent centuries, affection for Saint Margaret has spread across the world - even to North America, where a large number of churches are dedicated to her.
One of the most recent to receive her name was the Church of St Margaret of Scotland in North Conway, New Hampshire, which was only first dedicated in 1991. The church's Anglo-Catholic priest, Father Jeffrey Swayze, explains: "Margaret was a faithful mother and wife and a great disciple of Christianity, and her values spoke of her great commitment to God.
"It was because of her piety and commitment that our Bishop felt our new church should be dedicated to her. She really transformed the church in her country and inspired many of her people.
"As a parish, Margaret has certainly raised our interest in and knowledge of Scotland. We have an information board at the back of the church about her life, and quite a few of the parishioners have now been to Scotland. In fact, I've been over twice myself."
Malcolm III (Canmore) marries Margaret at Dunfermline. He meets her when she arrived in Scotland as a refugee and is instantly besotted with her. Their marriage is said to be an extremely happy one. Margaret introduces many of the customs of England to Scotland and carries out many acts of piety and charity. She dies in 1093 and is canonised in 1250.
1071 Margaret invites monks from Canterbury to found a monastery in Dunfermline.
1072 William the Conqueror invades Scotland in reprisal for Malcolm's intervention in English affairs. Malcolm submits at Abernethy and promises not to do it again.
1079 Malcolm does it again. He invades northern England and ravages Northumberland with the usual medieval savagery.
1080 England strikes back. Scotland is invaded and the English build their New Castle on the Tyne.
1087 William the Conqueror dies, and his son William Rufus is crowned in his place.
1091 Expedition time again as Malcolm once again marches into England. Once again, the Normans retaliate and once again, he apologies. A castle is built at Carlisle to try and keep him out.
1092 William Rufus wrests all Cumbria south of the Solway from Scotland.
1093 Malcolm mounts yet another invasion. This time, though, he is killed, allegedly when a lone English solder rides out of the town of Alnwick to offer surrender. The soldier dangles the keys on the end of his spear. When Malcolm reaches up to take them, the Englishman rams the spear through his eye and into his brain. In the ensuring battle his son Edward is also killed, and Margaret dies of grief four days later.
1093 Donald Bane is crowned king.
1094 Donald is deposed by Duncan II, but only rules for a few months before he is killed and Donald gets the throne back.
1097 Donald is captured, blinded and imprisoned by Edgar, who becomes a virtual dependant of William Rufus and Henry II of England.
1097 Edgar dies and Alexander I succeeds him.
1100 Beginning of formation of the clans.
1120 Alexander II founds St. Giles Cathedral.
1124 David I takes the Scottish throne. Period of strong ties with England begins.
1128 David I founds Holyrood Abbey.
1130 Edinburgh becomes a burgh.
1153 David dies at Carlisle. The new king is Malcolm IV.
1156 Somerled wins a naval victory against the ruling Norsemen off Islay.
1157 Henry II of England reclaims Northumberland and Cumberland.
1158 Malcolm goes to France to fight for Henry.
1164 Somerled dies. His land is broken up between his three sons.
1165 William I "The Lion" takes the Scottish throne.
1174 William forced by the Treaty of Falaise to accept Henry II's overlordship of Scotland.
1178 William founds Arbroath Abbey.
1189 He buys back Scottish sovereignty from Richard the Lionheart at the so-called Quitclaim of Canterbury.
1214 William I dies and is succeeded by Alexander II.
1250 Pope Innocent IV declares Margaret a saint. Her remains, along with Malcolm's, are moved to a shrine outside Dunfermline Abbey.
Meanwhile in the rest of the world...
1074 Married priests are excommunicated
1217 Salamanca University is founded
1218 Persia is conquered by Genghis Khan
1221 Vienna becomes a city
1204 Norman Crusaders capture Constantinople (1204-1261).
1115 Founding of Cistercian monestary of Clairvaux.
1209 Franciscan order recieves Papal approval.
1216 Dominican Order founded.
1100 Jews persecuted in France and Germany around this time.
1189 Jewish massacre in York, England.
1200 Lateran Council allows Jews to lend money.
1200 Southwestern and Mississippi cultures of North America begin to decline.
1180 Gempei civil war: Rise of the Minamoto Shoguns (1180-1185).
1241 Collapse of Hungary after the Mongol raids.
1106 Henry IV ends conflict with the Pope (1056-1106).
1200 Peak of the political power of the Roman Catholic Church.
1122 Concordat of Worms: An agreement between the Emperor and the Pope.
1168 Tula destroyed in the Americas.
1200 Building of the Mississippian Temple-Cities.
1200 Rise of the Aztecs and the Incas.
1071 Seljuks defeat the Byzantines at Manzikert.
1072 Peak of the Seljuk Empire.
1081 Founding of the Seljuk sultanate of Rum.
1243 Mongol invasions: Seljuks become Mongol vassals.
1070 Wang Anshi's reforms (1068-1086).
1127 The Jin take northern China: The Song retreat to Hangzhou.
1234 The Mongols conquer northern China, ousting the Jin.
1260 Peak of Bohemian power and prosperity.
1258 Mongols destroy the Abbasid Caliphate.