Upon the completion of his education, he continued teaching philosophy and mathematics at the Jesuit in Mogilev, where he also engaged in pastoral work. He then returned to Polotsk, where he taught Jesuit seminarians and lay students in the Jesuit College. He led a covert escape from the French invasion of 1812, and later returned to the city, resuming his position as a professor of dogmatic theology, apologetics, and homiletics.