THE Duke and Duchess of Cambridge have held a secret meeting with Gordon Brown to discuss Scottish independence.

Brown, who has recently launched a renewed campaign to save the Union, was seen attending the Palace of Holyroodhouse by Channel 4.

However, the broadcaster was asked not to show the images of the former prime minister in the grounds of the palace on privacy grounds.

William and Kate sat down for talks with Brown and his wife Sarah at the Queen’s official Edinburgh residence during the final day of their royal tour of Scotland.

READ MORE: Royal staff 'accused crew filming Gordon Brown of trespassing on public street'

The Earl of Strathearn was "listening to community views on the issue of independence", according to a Kensington Palace spokesperson.

The future king later gave a highly personal farewell speech as his week-long visit drew to a close, describing how Scotland has “shaped” him and praising its people and values.

William said Scotland was “so important” to himself and wife Kate as he recounted their experiences meeting a range of inspirational people from spritely pensioners, selfless NHS workers and committed charity volunteers over the past week.

The meeting between the royals and the former Labour leader was not publicised, but it was later mentioned in a line in the court circular put out by the palace.

The argument over Scottish independence has intensified after the Scottish National Party’s landslide victory in the Holyrood election earlier in May, which also produced the largest pro-independence majority in the Parliament in the history of devolution.

Boris Johnson has since stood by his pre-election position, saying the focus should be on the recovery from Covid-19 and not on another independence referendum.

READ MORE: Official Better Together website now a pro-independence page after Yes hijack

A spokesperson for Kensington Palace said: “During his time in Scotland Prince William has spoken to a broad range of people from different communities including politicians from across the political spectrum.”

The duke sat down for talks with First Minister Nicola Sturgeon at the weekend and also met Alistair Carmichael, Liberal Democrat MP for Orkney and Shetland, when the Cambridges opened Orkney’s hospital.

Soon after the Holyrood election Brown announced his Our Scottish Future think tank which will become a “campaigning movement” seeking to appeal to “middle Scotland”, those who are not entrenched in their positions on the Union or independence.

The former prime minister, who played a key role in the No campaign during the 2014 vote, has said those in middle Scotland are “patriots not nationalists” who want to see greater cooperation between the UK’s governments.

Ahead of the Scottish independence referendum in 2014 the Queen reportedly said she hoped voters would “think very carefully about the future”.

READ MORE: Viewer pans Union jackery of BBC property show visiting Scotland

Before the Queen’s reported comment Buckingham Palace had issued a statement, following speculation she was growing increasingly concerned about Scotland breaking away, saying any suggestion the monarch would wish to influence the outcome of the referendum was “categorically wrong”.

Speaking in Edinburgh at the closing ceremony of the General Assembly of the Church of Scotland, William said about some of the memorable individuals he had met: “These people make Scotland the vibrant, friendly, innovative and determined place Catherine and I love, and is so important to us.”

The duke who is the assembly’s Lord High Commissioner added: “I’m shaped by this place.

“The abiding affection I feel for it is rooted in my experience of its everyday life in people, relationships, and its ethic of neighbourliness.”