The most important pope of the 19th century declares war on the modern secular state and enunciates the doctrine of papal infallibility, setting the terms of the Church's struggle to adapt to the modern world.