The collision on Powell Street just west of Vallejo Street was reported shortly after 12:30 a.m., according to police.
The driver was pronounced dead at the scene. His passenger was transported to a hospital but later died of his injuries, police said.
No other vehicles appear to have been involved in the crash, and the cause is under investigation.