Barack Obama, president of the United States of America, visited the Globe Academy in Southwark on Tuesday as part of his state visit to the United Kingdom.
As word got round of the impending visit, small crowds gathered at either end of the police cordon on Harper Road.
The president was accompanied by prime minister David Cameron. The pair visited a science lab at the all-age academy and then joined in a game of table tennis.
Globe Academy principal Jason Baigent told ITV1's London Tonight that he had been contacted by Downing Street and the White House late last week with news of the president's intended visit – but he didn't tell even his senior colleagues until half an hour before Mr Obama arrived at the school.
The Globe Academy – sponsored by the ARK charity – is an all-age academy which replaced the former Joseph Lancaster Primary School and Geoffrey Chaucer Technology College.
Mr Cameron visited the academy during last year's election campaign. More recently education secretary Michael Gove opened Globe's new building and deputy prime minister Nick Clegg hosted a careers fair as part of his social mobility initiative.
Council leader Peter John tweeted: "Apparently President Obama is in Southwark. Nice to be kept in the loop!"
Later he was more enthusiastic: "It was fantastic that the president came to visit this exciting central London borough during his state visit to the UK," said Cllr John.
"We wrote to invite him to visit a local school some weeks ago when we knew he was coming and I'm pleased that he was able to see for himself the real progress that is being made to give local people all the chances they deserve to make the best for themselves, with improving school results, unrivalled regeneration projects and a really strong sense of community."
The president's motorcade returned to Westminster via New Kent Road and the Elephant & Castle roundabout.
• Mr Obama is an alumnus of Harvard University which is named after its Southwark-born benefactor John Harvard.
For the latest local news and events direct to your inbox every Monday, you need our weekly email newsletter SE1 Direct.
7,000+ locals read it every week. Can you afford to miss out?
Read the latest issue before signing up