The Duke of Cambridge has praised and thanked the Church of Scotland for "the work, the witness and the service" provided during the coronavirus pandemic.
"Be it the rapid move of services online or pastoral visits to neighbours to help with shopping or collecting prescriptions or support by parishes of their local foodbanks, the church has shown that even in a pandemic, though we may be separated, we need not be alone," Prince William said, addressing the Church of Scotland´s General Assembly.
He went on to say that during the past year, communities across the UK had experienced a time of profound loss, challenge and change but had "found support in the values of community life that perhaps we may have previously taken for granted".
"These values provide us with the strength and ingenuity to adapt and meet the challenges we face now and ahead - and that is why I believe we can be confident about the future, a future embracing change yet holding those values close," Prince William continued.
During his final speech, Prince William also said Scotland had "shaped" him and added that Scotland was "so important" to himself and wife Kate. He recounted their experiences meeting a range of inspirational people, including spritely pensioners, selfless NHS workers and committed charity volunteers.
"These people make Scotland the vibrant, friendly, innovative and determined place Catherine and I love, and is so important to us.
"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."
The Duke and Duchess of Cambridge were concluding a week-long tour around Scotland.
Additional reporting by Press Association