In pictures: Prince Philip's long association with Scotland

News imageGetty Images Prince Philip attends the presentation reception for Duke of Edinburgh Gold Award holders in the gardens at the Palace of Holyroodhouse in 2017Getty Images

Prince Philip had a long and close association with Scotland.

Here are some of the images of the Duke of Edinburgh in Scotland from a period spanning almost 90 years.

News imageFox Photos Prince Philip dressed for the Gordonstoun School's production of 'MacBeth', in Scotland. (Photo by Fox Photos/Getty Images)Fox Photos
Prince Philip went to Gordonstoun School in the north east of Scotland. Here he prepares for a production of Macbeth in 1935
News imagePA Prince Philip at GordonstounPA
Prince Philip attended Gordonstoun until 1939, when he became a cadet at the Royal Naval College in Dartmouth
News imageBBC Presentational white space
News imagePA Princess Elizabeth dancing with her fiance, Lieutenant Philip Mountbatten, at the Assembly Rooms in Edinburgh in 1947, when a ball was held to welcome the royal family to ScotlandPA
Princess Elizabeth dancing with her fiance, Lieutenant Philip Mountbatten, at the Assembly Rooms in Edinburgh in 1947, when a ball was held to welcome the royal family to Scotland
News imageGetty Images Prince Philip, Duke of Edinburgh, making a speech after receiving his Honorary Doctorate of Law, at Edinburgh University, Scotland, August 10th 1951. (Photo by Keystone/Hulton Archive/Getty Images)Getty Images
Prince Philip making a speech after receiving his Honorary Doctorate of Law at Edinburgh University in 1951
News imagePA The Queen, Prince Philip with a young Prince Charles and Princess AnnePA
Queen Elizabeth with the Duke of Edinburgh and their children, Princess Anne and Prince Charles, at their Scottish retreat, Balmoral Castle, in 1953
News imageBBC Presentational white space
News imageHulton Archive The Duke of Edinburgh inspecting a Guard of Honour of the 2nd Battalion Black Watch, at Ballater Station on the way to Balmoral in August 1952Hulton Archive
The Duke of Edinburgh inspecting a Guard of Honour of the 2nd Battalion Black Watch, at Ballater Station on the way to Balmoral in August 1952
News imageGetty Images A young Prince Charles arrives for his first term at Gordonstoun school in Moray, accompanied by Prince PhilipGetty Images
A young Prince Charles arrives for his first term at Gordonstoun school in Moray, accompanied by Prince Philip, who was one of the school's first students
News imageBBC Presentational white space
News imageGetty Images Baby Prince Andrew perches on Prince Philip's lap during a picnic in the grounds of Balmoral Castle. Also pictured are Queen Elizabeth, Prince Charles, and Princess Anne.Getty Images
Baby Prince Andrew perches on Prince Philip's lap during a picnic in the grounds of Balmoral Castle in 1960
News imagePA The Duke of Edinburgh talking to children during an impromptu visit to the Scottish National Caravan Rally in 1969PA
The Duke of Edinburgh talking to children during an impromptu visit to the Scottish National Caravan Rally in 1969
News imageFox Photos Queen Elizabeth II and Prince Philip at Balmoral, Scotland, 1972Fox Photos
The Queen and Prince Philip at Balmoral in 1972
News imagePA The Queen and Prince Philip at Edinburgh's Meadowbank Stadium, where they attended a Pageant of Scottish Youth during their Silver Jubilee tour of Scotland in 1977PA
The Queen and Prince Philip at Edinburgh's Meadowbank Stadium, where they attended a Pageant of Scottish Youth during their Silver Jubilee tour of Scotland in 1977
News imageGetty Images The Queen, Prince Phillip and Prince Charles arrive for the State Opening of the Scottish Parliament in Edinburgh in July 1999Getty Images
The Queen, Prince Phillip and Prince Charles arrive for the State Opening of the Scottish Parliament in Edinburgh in July 1999
News imageGetty Images Pope Benedict was met by Prince Philip at Edinburgh Airport at the start of his four-day state visit to the United Kingdom in 2010Getty Images
Pope Benedict was met by Prince Philip at Edinburgh Airport at the start of his four-day state visit to the United Kingdom in 2010
News imageGetty Images Queen Elizabeth and Prince Philip attend the Thistle Service at St Giles' Cathedral in Edinburgh in 2010Getty Images
Queen Elizabeth and Prince Philip attend the Thistle Service at St Giles' Cathedral in Edinburgh in 2010
News imageGetty Images Prince Philip and the Queen pose for a photo during a visit to RAF Lossiemouth on their 67th wedding anniversary in 2014Getty Images
Prince Philip and the Queen pose for a photo during a visit to RAF Lossiemouth on their 67th wedding anniversary in 2014
News imageGetty Images Prince Phillip is greeted by Canadian athlete Isabelle Després during a visit to the Athletes' Village during the Commonwealth games in Glasgow in July 2014Getty Images
Prince Phillip is greeted by Canadian athlete Isabelle Després during a visit to the Athletes' Village during the Commonwealth games in Glasgow in July 2014
News imageGetty Images Queen Elizabeth and Prince Philip watch competitors at the Braemar Gathering in September 2015Getty Images
Queen Elizabeth and Prince Philip watch competitors at the Braemar Gathering in September 2015
News imageGetty Images Prince Philip looks on at the opening of the Borders Railway in September 2015, on the day the Queen became the longest serving monarchGetty Images
Prince Philip looks on at the opening of the Borders Railway in September 2015, on the day the Queen became the longest serving monarch
News imageGetty Images Queen Elizabeth II (C) and Prince Philip, Duke of Edinburgh (2L) stand during the official opening ceremony for the Queensferry Crossing, a new road bridge spanning the Firth of Forth from Queensferry to North Queensferry, in Queensferry, west of Edinburgh, on September 4, 2017Getty Images
The Queen and Prince Philip officially opened the new Queensferry Crossing over the Forth in 2017

.