sentences:  Margaret Douglas was to become the mother of Lord Darnley, the second husband of Mary, Queen of Scots, and grandmother of King James VI of Scotland and I of England.Further building work took place between 1541 and 1551 and more repairs were made in 1563.In 1605, King James I granted the castle and manor to George Home, 1st Earl of Dunbar, Lord Treasurer of Scotland, but thereafter, the castle fell into decay and much of its masonry was used in other buildings.