The Princess Royal led an afternoon of events on both sides of the Forth marking the centenary of the Battle of Jutland.
Joined by Vice Admiral Sir Tim Laurence, First Minister Nicola Sturgeon and Baroness Annabel Goldie, Princess Anne started her visit in Rosyth, where a remembrance service was held in the Parish Church.
Rosyth was a key player in the First World War battle which saw more than 6,000 British and 2,500 German lives lost.
In 1916, the Fife port was where the Battlecruiser fleet was based.
During the ceremony, local schoolchildren gave readings before placing a book of remembrance on the altar.
There was a poignant minute’s silence and the ringing of a bell made from the hull of HMS Tiger, a battlecruiser which survived heavy shelling during the Jutland campaign.
Fife Depute Provost Kay Morrison said: “I am pleased that Fife and the Forth have been chosen to mark the centenary of the Battle of Jutland.
“Our naval heritage is an integral and valued part of Rosyth’s history.”
The dignitaries then crossed the Forth for a commemoration ceremony at South Queensferry Cemetery.
Fife singer Barbara Dickson performed a moving rendition of The Flowers O’ The Forest before silence was observed.
Princess Anne, Sir Tim and Ms Sturgeon met sons, daughters, grandchildren and great-grandchildren of those who served during the battle, along with local school pupils and young students from Germany.
At Hawes Pier in South Queensferry, hundreds lined the street to see the finale to the day’s events.
The Band of HM Royal Marines performed the Beating Retreat while MV Fingal, which has been dazzle painted by artist Ciara Phillips, made stately progress under the Forth Bridge.
A gun was fired by HMS Kent in the Forth and a plaque was unveiled by Princess Anne.