Pope John Paul II served as pope for more than 26 years. He was elected on October 16, 1978, and his pontificate lasted until his death on April 2, 2005
. This made him the second longest-serving pope in history after Pope Pius IX, who served for 31 years and seven months