Obama made an unexpected stop for dinner Thursday night in San Francisco.
Despite the cold snap on Townsend Street, a sizable crowd waited on the sidewalk to see President Obama. Most stumbled upon the scene by accident.
"I was walking home from work, and saw the police around the corner and was like, whoa," said San Francisco resident Matthew Herbst.
The president had dinner with Silicon Valley VIPS at 25 Lusk. One insider tweeted pictures. A passerby shared a periscope of the president's arrival at the restaurant.
RELATED: Obama immigration plan blocked by 4-4 tie at Supreme Court
Most spectators on the outside didn't see much, but they said it was enough.
"I would stay here overnight to see him. He's my best," Gloria Hernandez said.
"I was feeling really excited just to know that I was so close to him," said Obama supporter Jim Shepich.
One couple happened to have reservations. "As he left, he was taking pictures. We got our own pictures and gave him a standing ovation and I was yelling, 'We love you Obama,'" said patron Mark Iverson.
The president went straight to the restaurant from Crissy Field, where he landed around 6 p.m. People there were also pleasantly surprised to have been in the same place at the same time as president Obama.
"It's pretty amazing. This is the first time I'm seeing the real thing," one bystander said.
Obama will stay overnight in the Bay Area and headline the seventh annual Global Entrepreneurship Summit at Stanford University's Memorial Auditorium, where he will make remarks during a partner plenary scheduled for 9:30 a.m. Friday.
Other speakers include Facebook founder and CEO Mark Zuckerberg, Google CEO Sundar Pichai and AOL co-founder Steve Case.
He will then take part in a Google Portal virtual conversation with entrepreneurs at the university shortly after noon Friday.
RELATED: Top tech executives attend president's summit at Stanford
The president is scheduled to depart from Moffett Field at 1:35 p.m. Friday for Seattle, where he will speak at a reception for Gov. Jay Inslee and a Democratic Congressional Campaign Committee event.
Obama attended Democratic fundraisers during his last two visits to the Bay Area in February and April.
Bay City News contributed to this report.
Click here for more stories on President Obama.