 Alexander Carlyle in Inveresk (who gave him the manuscript of his autobiography on his death in 1805).Lee was licensed as a preacher in 1807, and after acting for a few months as pastor of a Presbyterian chapel in London he was ordained as minister of Peebles.In 1812 he was appointed Professor of Church History at St Mary's College, St Andrews, and was there chosen rector of the college.