Sky News reports that the meeting, which was mostly one-on-one, was about an hour long and its contents included "a range of subjects, including artificial intelligence."
A Downing Street spokesperson insisted the visit was an “informal courtesy drop in” as part of Obama's visit to London.
They added: “President Obama’s team made contact and obviously the prime minister was very happy to to meet with him and discuss the work of the Obama Foundation.”
Reporters captured the former president leaving Number 10. He waved and said he was "tempted" when asked to answer questions by the media.
The Obama Foundation's website states it's "supporting and connecting values-based changemakers around the globe, by working to create a world where girls have equal opportunities to pursue their dreams through access to education, and by fostering safe and supportive communities where young men of colour have clear pathways to opportunity."