Barack Obama headed straight for the Home of Golf after touching down in Scotland on his first visit to the country.
• Video used with kind permission of Connoisseur Golf
The former US president teed off on the world-famous Old Course in St Andrews ahead of his appearance at tonight’s charity gala in Edinburgh.
A relaxed looking Mr Obama posed for photos with fans and greeted onlookers who had lined the famous course to greet him.
Tom Hunter was also on the course with the former president.
Speculation mounted after Mr Obama touched down at Edinburgh Airport in golf gear, with many on social media offering suggestions on which course he might be heading to.
Tickets for tables of 10 went on sale from about £5,000 and quickly sold out.
Profits are to be split between children’s charities in Scotland and the Obama Foundation, set up by the former president and his wife Michelle.
Security is expected to be tight in Edinburgh as police step up resources around major events in the wake of the Manchester bombing.
Singer Annie Lennox, rock band Texas and comedian Kevin Bridges will provide entertainment at the event and young people will also be involved, with 13-year-old Mila Stricevic from Glasgow to read a poem on the night after winning a schools competition.
Auction prizes on the night include two walk-on parts in the next Fantastic Beasts film from the Harry Potter franchise, and the naming rights to the Gleneagles Hotel American bar.
The Hunter Foundation has previously arranged for US politicians and actors, including Bill Clinton, Leonardo DiCaprio and George Clooney, to come to Scotland.
Announcing the visit in April, Sir Tom said: “From the south side of Chicago to the White House has been an epic, historic journey and it will be a true honour to hear that story from the man who made that journey.
“We are both truly proud and delighted to be hosting the 44th president of the United States in Scotland at this event.”