Complex sentence: In 1866 he was appointed to the Chair of Moral Philosophy at Glasgow, which he held until 1893, when he became Master of Balliol College, from which he retired in 1907.
Split into simpler sentences: In 1866 he was appointed to the Chair of Moral Philosophy at Glasgow, which he held until 1893. In that year he became Master of Balliol College, from which he retired in 1907.