Albany died in 1420, and Doune, the dukedom of Albany, and the Regency all passed to his son Murdoch (1362–1425). The ransom for James I was finally paid to the English, and the King returned in 1424, taking immediate steps to gain control of his kingdom. Albany and two of his sons were imprisoned for treason, and then executed in May 1425. Doune Castle became a royal possession, under an appointed Captain, or Keeper, and served as a retreat and hunting lodge for the Scottish monarchs. It was also used as a dower house by Mary of Guelders (c. 1434–1463), Margaret of Denmark (1456–1486), and Margaret Tudor (1489–1541), the widowed consorts of James II, James III and James IV respectively.