 David II of Scotland appointed him keeper of the strategic Stirling Castle.In 1350 Sir Robert Erskine was appointed as Chamberlain of Scotland and justicar north of the Forth.Erskine was also one of the nobles who established the succession to the throne of Robert II of Scotland, who was a grandson of the great Robert the Bruce and the first monarch of the Stewart dynasty in 1371.