"The keeper of the Castle, Alexander Erskine of Gogar was ejected by supporters of Regent Morton in April 1578, after his son was fatally wounded during a struggle at the gate.[37] The rebellious Earls of Mar and Angus seized the castle in 1584, but surrendered and fled to England when the King arrived with an army. They returned the following year, forcing the King to surrender, although they proclaimed their loyalty to him.[38]"
http://en.wikipedia.org/wiki/Stirling_Castle