The grants from the U.S. Department of Housing and Urban Development will help provide permanent and transitional housing as well as job training, health care, mental health counseling, drug treatment, and child care services, according to the mayor's office.
"In the last seven years, San Francisco moved in a new direction on efforts to end homelessness, helping thousands of people get off the streets and into supportive housing and services instead," Mayor Ed Lee said in a statement.
Lee said the grants showed President Obama's "commitment to cities" and would "help San Francisco continue to make real progress helping people and combating chronic homelessness."
San Francisco will conduct its biennial count of the city's homeless population next Thursday, according to the mayor's office.
In January 2009, the homeless population was 6,514.