 In 1034 King Malcolm II was murdered at Glamis, where there was a Royal Hunting Lodge.In William Shakespeare's play "Macbeth" (1603–06), the eponymous character resides at Glamis Castle, although the historical King Macbeth (d. 1057) had no connection to the castle.By 1372 a castle had been built at Glamis, since in that year it was granted by King Robert II to Sir John Lyon, Thane of Glamis, husband of the king's daughter.