Although this gave him an opportunity to flex political muscle, his room for manoeuvre was significantly constrained, however, by a combination of youthful inexperience and the ultimately mortal rivalry of his uncle, Robert Stewart (brother of Robert III; the latter was named John before he became king), Duke of Albany, who had been protector of the kingdom prior to David's lieutenancy.