In 1854 Alexander became Professor of Theology at Edinburgh University (and Principal of the Edinburgh Theological Hall from 1877), a position which he held until 1881, in spite of many alternative offers.