At about 1:45 a.m., people were exiting a nightclub in the 1800 block of Post Street, between Fillmore and Webster streets, San Francisco police Sgt. Danielle Newman said.
Police say 36-year-old David Gilford from Modesto was shot and killed while standing on the sidewalk.
He was taken to the hospital with at least one gunshot wound, but did not survive.
No information about a possible suspect was immediately available, Newman said.
Investigators were canvassing the neighborhood searching for witnesses.
Anyone with information about the shooting is asked to call the Police Department's anonymous tip line at (415) 575-4444 or to send a tip by text message to TIP411 with "SFPD" in the message.