Ms Sturgeon waited in line as the King and Queen Consort were ushered towards the awaiting officials lining up outside of the cathedral.
The First Minister and His Majesty could be seen exchanging a few words in greeting, both smiling as Ms Sturgeon welcomed him to Dunfermline.
Only minutes before, the SNP leader had been greeted herself by booing members of the public.
Dunfermline residents gathered outside the city chambers ahead of the King’s arrival in an attempt to catch a glimpse of the royal couple.
Nicola Sturgeon bowed as he shook the King’s hand
Sturgeon joined other officials in greeting the King and Queen Consort to Dunfermline
Bill Henderson, 71, said many were excited the town was finally becoming a city.
He said: “It’s a historic event.
“I was born just before the Queen was came to the throne, so she’s been my monarch my whole life. It’s just exciting.
“And especially a King Charles coming back to Dunfermline when King Charles the First was born here, however long ago that was.”
The King and Queen Consort greeted the crowds outside of Dunfermline Cathedral
Teacher Carol Williams, 52, said: “it’s such an honour for Dunfermline to be his first visit as the new King.”
The late Queen died peacefully at Balmoral Castle on September 8, with Scotland taking on a prominent role in starting off the funeral proceedings set out to mark her death.
As Queen Elizabeth II laid at rest at St Giles’ Cathedral in Edinburgh, the King and his sibling took up a 15-minute vigil of the coffin as members of the public paid their tributes.
The King was last in Scotland four days after the death of the Queen
And the King and Queen Consort travelled to Dunfermline to mark the conferral of city status.
Dunfermline’s bid for the status was based on its heritage and its historic status as an ancient seat of royal power, but also one of the fastest-growing towns in Europe.
The King and his wife will also host a reception at the Palace of Holyroodhouse in Edinburgh on Monday to celebrate British South Asian communities.
Source: EXPRESS CO UK