It led him into a bitter conflict with the Catholic Church.