The first fire started just before 6.a.m Friday at a duplex on H and Buena Vista Streets.
Fire officials said they pulled a man from one of the units -- and the man has burns covering 80% to 90% of his body.
Fire officials said occupants in the other unit were not injured.
As crews were wrapping up work on the duplex, they noticed smoke coming from an apartment building nearby on H and A Streets.
Fire crews quickly moved locations and pulled a man from his smoke-filled apartment. The man is being treated for smoke inhalation.
Fire officials said an initial investigation shows there weren't smoke alarms at either location. They say if firefighters weren't at the initial blaze, the second man might not have survived.
"This gentleman was asleep. The amount of heavy smoke that was in there, if our units aren't down the street, see the smoke coming up from here, chances are he doesn't get out of that apartment. Without that smoke detector, that smoke detector would have absolutely alerted him so he would've had the opportunity to get out alive," said Battalion Chief Danny Brown with the Bakersfield Fire Department.
Fire officials said the apartment fire started in the kitchen.
The cause of the duplex fire is unknown.
Both fires are under investigation. Fire officials said the two fires are unrelated.
Copyright 2016 Nexstar Broadcasting, Inc. All rights reserved. This material may not be published, broadcast, rewritten, or redistributed.