The first Vatican Council, also known as Vatican I, decrees the doctrine of Papal infallibility.

The doctrine claims that the Pope cannot err when speaking on issues of morality and/ or faith.

Source