 Here he devoted himself to literary work until he was called in 1799 to a professorship at Ingolstadt.In 1800 he was transferred along with the university to Landshut, where he taught pastoral and moral theology, pedagogics, homiletics, liturgy and catechetics.Celebrated as a teacher and a writer, Sailer was repeatedly called to other positions, was on terms of friendship with distinguished Catholics and Protestants, and was universally revered by his pupils, among whom was the Crown Prince Louis, later King of Bavaria.