The California Highway Patrol says it happened on Academy and Bullard just after 3 am.
A passerby saw a car with hazard lights on and notified authorities.
Investigators determined the man was heading south on Academy when he drifted across northbound lanes and crashed into a tree.
He was declared dead at the scene.
Authorities say the man was not wearing a seatbelt and alcohol may be a factor in the crash.