The president's plane took off around 9:30 a.m. and a C-5 air force transport plane loaded up all the support equipment and vehicles from the presidential motorcade from secret service escort cars to the president's limo.
A lot of coordination goes into these visits, even this one that lasted just about 16 hours.
The president Obama's motorcade left the Intercontinental Hotel in Downtown San Francisco and headed straight to SFO.
This was Mr. Obama's first trip back to San Francisco since taking office -- a highly secure presidential trip to the bay area that hasn't happened since former president bush visited Silicon Valley in 2007.
Mr. Obama came strictly for a fundraising event for the Democratic Party and as he left after this half day visit, he turned and waved goodbye, in traditional presidential form.
During the reception and dinner events at the Westin St. Francis Hotel, the president spoke to supporters about accomplishments so far, like closing the Guantanamo prisoner camp and passing the recovery act to pull the economy out of recession.
He also talked about works-in progress like health care.
"We are closer than we have ever been to passing health insurance reform. Health insurance reform that will finally make quality care affordable for people who don't have it and bring stability and security to people who do, and slow the skyrocketing health care costs that are crushing our families and our businesses, and our state and federal government," said President Obama.
But not everyone supported the president's work so far as thousands of protestors gathered on Union Square outside the fundraiser. They held signs and voiced discontent on issues including health care reform and the war in Afghanistan.
The president's presence at this event helped raise about $3 million for the Democratic National Committee, which goes toward its legislative agenda and supporting future congressional races.