Police received a report of shots fired in the area of Third and Bryant streets at 4:53 a.m., Officer Albie Esparza said.
When officers arrived, they found the victim suffering from multiple gunshot wounds, Esparza said.
He was taken to San Francisco General Hospital, where he later died.
No arrests have been made in the case, Esparza said.
Anyone with information about the shooting is asked to call police at (415) 553-0123 or anonymously at (415) 575-4444. Tips can also be submitted by texting to TIP411 with "SFPD" in the message.