In 1570, after the assassination of Moray, he was appointed one of the preceptors of the young king, and it was through his strict tuition that James VI acquired his scholarship.
He died in his house on Kennedy's Close (near the modern Hunter Square) in Edinburgh on 28September 1582 and was buried in Greyfriars Kirkyard on the following day.