Are the popes teachings infallible
I have been reading a book on catholic doctrine and came across a passage that was explaining the positions of the priests and the pope. It said the priests are the descendants of Jesus' disciples. The pope is the descendant of peter... The most intriguing part was that the church believes that the popes teachings are infallible. I just want to see how other people view this. My view is that probably the pope being "a descendand of peter is guided by the holy spirit and so speaks with the help of the holy spirit." I am born catholic but I now want to understand my church and make that decision to stay or leave.