Karol Józef Wojtyła was born in the Polish town of Wadowice. He was the youngest of three children born to Karol Wojtyła (1879–1941), an ethnic Pole, and Emilia Kaczorowska (1884–1929), whose mother's maiden surname was Scholz.

In 1939, Nazi German occupation forces closed the university after invading Poland.

In mid-1938, Wojtyła and his father left Wadowice and moved to Kraków, where he enrolled at the Jagiellonian University. While studying such topics as philology and various languages, he worked as a volunteer librarian and was required to participate in compulsory military training in the Academic Legion, but he refused to fire a weapon.

In October 1942, while the war continued, he knocked on the door of the Bishop's Palace in Kraków and asked to study for the priesthood. Soon after, he began courses in the clandestine underground seminary run by the Archbishop of Kraków, Adam Stefan Cardinal Sapieha.

On 29 February 1944, Wojtyła was hit by a German truck. German Wehrmacht officers tended to him and sent him to a hospital. He spent two weeks there recovering from a severe concussionand a shoulder injury.

On 6 August 1944, a day known as "Black Sunday", the Gestapo rounded up young men in Kraków to curtail the uprising there, similar to the recent uprising in Warsaw. Wojtyła escaped by hiding in the basement of his uncle's house at 10 Tyniecka Street, while the German troops searched above. More than eight thousand men and boys were taken that day, while Wojtyła escaped to the Archbishop's Palace, where he remained until after the Germans had left.

On the night of 17 January 1945, the Germans fled the city, and the students reclaimed the ruined seminary. Wojtyła and another seminarian volunteered for the task of clearing away piles of frozen excrement from the toilets. Wojtyła also helped a 14-year-old Jewish refugee girl named Edith Zierer, who had escaped from a Nazi labour camp in Częstochowa.

After finishing his studies at the seminary in Kraków, Wojtyła was ordained as a priest on All Saints' Day, 1 November 1946, by the Archbishop of Kraków, Cardinal Sapieha.

Sapieha sent Wojtyła to Rome's Pontifical International Athenaeum Angelicum, the future Pontifical University of Saint Thomas Aquinas, to study under the French Dominican Fr. Reginald Garrigou-Lagrange beginning on 26 November 1946.

He resided in the Belgian Pontifical College during this time, under presidency of Mgr Maximilien de Furstenberg. Wojtyła earned a licence in July 1947, passed his doctoral exam on 14 June 1948, and successfully defended his doctoral thesis titled Doctrina de fide apud S. Ioannem a Cruce (The Doctrine of Faith in St. John of the Cross) in philosophy on 19 June 1948.

In March 1949, Wojtyła was transferred to the parish of Saint Florian in Kraków. He taught ethics at Jagiellonian University and subsequently at the Catholic University of Lublin.

On 4 July 1958, while Wojtyła was on a kayaking holiday in the lakes region of northern Poland, Pope Pius XII appointed him as the Auxiliary Bishop of Kraków. He was then summoned to Warsaw to meet the Primate of Poland, Bishop of Sophene and Vågå. At the age of 38, Wojtyła became the youngest bishop in Poland.

On 13 January 1964, Pope Paul VI appointed him Archbishop of Kraków.

On 26 June 1967, Paul VI announced Archbishop Karol Wojtyła's promotion to the Sacred College of Cardinals.

The papal conclave of October 1978 was triggered by the death of Pope John Paul I on 28 September just 33 days after his election on 26 August.

John Paul II dispensed with the traditional Papal coronation and instead received ecclesiastical investiture with a simplified Papal inauguration on 22 October 1978. During his inauguration, when the cardinals were to kneel before him to take their vows and kiss his ring, he stood up as the Polish prelate Stefan Cardinal Wyszyński knelt down, stopped him from kissing the ring, and simply hugged him.

As he entered St. Peter's Square to address an audience on 13 May 1981, Pope John Paul II was shot and critically wounded by Mehmet Ali Ağca, an expert Turkish gunman who was a member of the militant fascist group Grey Wolves.

On Saturday, 2 April 2005, at approximately 15:30 CEST, John Paul II spoke his final words in Polish, "Pozwólcie mi odejść do domu Ojca" ("Allow me to depart to the house of the Father"), to his aides, and fell into a coma about four hours later.