The visit was part of a tour of the UK – the first by a reigning Pope - that saw him visit nine cities and deliver 16 major addresses.
He started his visit in England and flew north of the border from RAF Leeming, in Yorkshire, from where he travelled by jet to RAF Turnhouse – now Edinburgh Airport – on May 31, 1982.
Murrayfield Stadium was his first port of call, where he met with around 45,000 young people and Protestant church leaders, before visiting the Capital’s Catholic cathedral and the Assembly Hall.
The next day, June 1, saw John Paul II visit patients at St Joseph's Hospital in Rosewell, address teachers at St Andrew's College, and celebrate Mass with a huge crowd of around 300,000 people at Glasgow’s Bellahouston Park.
Here are 27 pictures to take you back to his memorable day in Edinburgh.
. Pope John Paul II-Visits Scotland 1982
THE POPE MEETS THE CATHOLIC YOUTH OF SCOTLAND AT MURRAYFIELD STADIUM
Crowds of young people welcome Pope John Paul II to Murrayfield Stadium during his 1982 visit to Scotland. Photo: UNKNOWN
. Tradition
Pope John Paul II does his traditional kissing of the tarmac when he lands at Turnhouse Airport as Cardinal Gray looks on. Photo: DENIS STRAUGHAN
. Congregating
His Holiness Pope John Paul II walks through the congregation in St Mary's RC Cathedral, in Broughton Place, with Cardinal Gordon Joseph Gray in the background. Photo: ALLAN MILLIGAN
. Roads cleared
The Popemobile carrying Pope John Paul II makes its way down the Mound from the Assembly Hall. Photo: Allan Milligan
. Popemobile
Pope John Paul II waves to the Murrayfield crowd from the Popemobile. Photo: Unknown
. 'HIYA'
Youngsters hold up a HIYA sign for Pope John Paul II at Murrayfield. Around 40.000 young people from all over Scotland came for the Scottish National Youth Pilgrimage, singing 'You'll Never Walk Alone' and chanting 'John Paul, John Paul'. Photo: Unknown
. Procession
Pope John Paul II is greeted by crowds on Princes Street. Photo: Unknown
. Excited youngsters
Maria McGuinness and Ann Balsitis were among the young crowd who came to see Pope John Paul II at Murrayfield during the Papal visit to Scotland. Photo: Unknown
. Meeting of minds
Pope John Paul II is greeted by Archbishop Thomas Winning and Cardinal Gordon Gray on landing at Turnhouse Airport. Cardinal Winning had played a major role in ensuring the Papal visit went ahead. Photo: Unknown
1. Tradition
Pope John Paul II does his traditional kissing of the tarmac when he lands at Turnhouse Airport as Cardinal Gray looks on. Photo: DENIS STRAUGHAN
2. Congregating
His Holiness Pope John Paul II walks through the congregation in St Mary's RC Cathedral, in Broughton Place, with Cardinal Gordon Joseph Gray in the background. Photo: ALLAN MILLIGAN
3. Roads cleared
The Popemobile carrying Pope John Paul II makes its way down the Mound from the Assembly Hall. Photo: Allan Milligan
4. Popemobile
Pope John Paul II waves to the Murrayfield crowd from the Popemobile. Photo: Unknown