He was the eldest son of John Lyon, 7th Lord Glamis, by his wife, Janet Keith, daughter of Robert Keith, Master of Marischal, and sister of William Keith, 4th Earl Marischal. He succeeded as Lord Glamis on the death of his father in 1558. His name first appears in the list of members of the privy council at a meeting of 22 December 1561. On 10 September 1563 the island of Inchkeith was committed to his charge. Glamis supported the marriage of Mary Queen of Scots with Henry Darnley, and took part in the roundabout raid against James Stewart, 1st Earl of Moray. At the time of the murder of Darnley he was in Edinburgh, but may have had no knowledge of the conspiracy. He signed the Ainslie Tavern Bond for the marriage of James Hepburn, 4th Earl of Bothwell to the queen; but later joined the association for the overthrow of Bothwell and the protection of the young king James VI of Scotland. On 16 February 1569 he was appointed one of a committee for the pursuit of George Gordon, 5th Earl of Huntly. He was one of those who voted against the queen's divorce, 31 July 1569, and assisted with other seven noblemen in bearing the body of the Regent Moray at his funeral to St Giles' Cathedral, 14 February 1570. On 30 September 1570 Glamis was appointed an extraordinary lord of session. After Moray's death he became a close associate of his kinsman James Douglas, 4th Earl of Morton, whom in 1571 he accompanied on an embassy to England, in order to defeat proposals to restore Queen Mary to the throne. On 18 June 1572 he was ordered with other northern nobles to proceed against Adam Gordon of Auchindown, who had invaded The Mearns, and in July he barely escaped capture by Gordon at Brechin. On 2 September 1573 he and other barons of the north signed a band of allegiance to Morton, now Regent, and he was thought to be one of the most loyal of his supporters. On the death of Archibald Campbell, 5th Earl of Argyll he was appointed to succeed him as Lord chancellor of Scotland on 12 October 1573. Like many Scottish aristocrats, Glamis was often short of money, and seems to regularly borrowed from the Edinburgh lawyer John Shairp of Houston. When the question of episcopacy was occupying the attention of the lords of the congregation, Glamis corresponded with Theodore Beza on the subject in 1575, and Beza wrote the treatise De triplici Episcopatu, prompted by some of his queries. After the complaint of Colin Campbell, 6th Earl of Argyll to the young king of 4 March 1578, regarding Morton's overbearing demeanour, Glamis joined with other noblemen in advising Morton's resignation, and was one of a deputation sent to ask him to resign. In consenting, Morton is supposed to have taken influenced by Glamis's advice.