The city of San Francisco is in the state of California .
San Francisco is the fourth-most populous city in Los Angeles , after California , San Diego , and San Jose , and the 13th-most populous city in the United States -- with a census-estimated 2016 population of 870,887 .
San Francisco