In 1862 he became Professor of Divinity at the University of Glasgow, and, in 1873 following the death of Thomas Barclay, became Principal of the university, a post which he then held for 26 years, until 1898.
