The fire was reported shortly before 3:30 p.m. Saturday at a home along 24th Street between Noe and Castro in San Francisco.
Firefighters called a second alarm for the blaze at 3:57 p.m. Smoke from the fire could be seen for miles.
Firefighters were able to bring the fire under control shortly after 4:25 p.m.
The fire was contained to one structure that houses several apartment buildings. It's not known if anyone was inside those apartments at the time of the fire.
There were no injuries associated with the blaze.