Charred remnants of a big rig remain in place after the driver apparently lost control and slammed into a wall of Sullivan's Funeral Home on Market Street between Sanchez and Noe streets in San Francisco, Calif. on Thursday, May 15, 2014. A hazmat crew was called in to remove fluids from the truck before it could be towed. Westbound Market Street remained closed to traffic well into the morning. less

Charred remnants of a big rig remain in place after the driver apparently lost control and slammed into a wall of Sullivan's Funeral Home on Market Street between Sanchez and Noe streets in San Francisco, ... more

Photo: Paul Chinn / The Chronicle

Image 2 of 12

Charred remnants of a big rig remain in place after the driver apparently lost control and slammed into a wall of Sullivan's Funeral Home on Market Street between Sanchez and Noe streets in San Francisco, Calif. on Thursday, May 15, 2014. A hazmat crew was called in to remove fluids from the truck before it could be towed. Westbound Market Street remained closed to traffic well into the morning. less

Charred remnants of a big rig remain in place after the driver apparently lost control and slammed into a wall of Sullivan's Funeral Home on Market Street between Sanchez and Noe streets in San Francisco, ... more

Photo: Paul Chinn / The Chronicle

Image 3 of 12

Charred remnants of a big rig remain in place after the driver apparently lost control and slammed into a wall of Sullivan's Funeral Home on Market Street between Sanchez and Noe streets in San Francisco, Calif. on Thursday, May 15, 2014. A hazmat crew was called in to remove fluids from the truck before it could be towed. Westbound Market Street remained closed to traffic well into the morning. less

Charred remnants of a big rig remain in place after the driver apparently lost control and slammed into a wall of Sullivan's Funeral Home on Market Street between Sanchez and Noe streets in San Francisco, ... more

Photo: Paul Chinn / The Chronicle

Image 4 of 12

Charred remnants of a big rig remain in place after the driver possibly lost control and slammed into a wall of Sullivan's Funeral Home on Market Street between Sanchez and Noe streets in San Francisco, Calif. on Thursday, May 15, 2014. A hazmat crew was called in to remove fluids from the truck before it could be towed. Westbound Market Street remained closed to traffic well into the morning. less

Charred remnants of a big rig remain in place after the driver possibly lost control and slammed into a wall of Sullivan's Funeral Home on Market Street between Sanchez and Noe streets in San Francisco, Calif. ... more

Photo: Paul Chinn / The Chronicle

Image 5 of 12

Image 6 of 12

Westbound Market Street will be closed till Thursday afternoon in the Castro. A truck burst into flames after crashing into a funeral home on the street early Thursday morning.

Westbound Market Street will be closed till Thursday afternoon in the Castro. A truck burst into flames after crashing into a funeral home on the street early Thursday morning.

Photo: Evan Sernoffsky / The Chronicle

Image 7 of 12

What is left of the semi-truck driver's seat after the fiery crash.

What is left of the semi-truck driver's seat after the fiery crash.

Photo: Evan Sernoffsky / The Chronicle

Image 8 of 12

A tow truck prepares to remove a semi-truck trailer from a Market Street funeral home Thursday morning.

A tow truck prepares to remove a semi-truck trailer from a Market Street funeral home Thursday morning.

Photo: Evan Sernoffsky / The Chronicle

Image 9 of 12

The remains of a semi-truck that crashed it a funeral home on Market Street in San Francisco's Castro District, sparking a large fire.

The remains of a semi-truck that crashed it a funeral home on Market Street in San Francisco's Castro District, sparking a large fire.

Photo: Evan Sernoffsky / The Chronicle

Image 10 of 12

Image 11 of 12

No major damage was sustained to the funeral home on Market Street after a semi-truck slammed into the building in a fiery crash early Thursday morning.

No major damage was sustained to the funeral home on Market Street after a semi-truck slammed into the building in a fiery crash early Thursday morning.

Photo: Evan Sernoffsky / The Chronicle

Image 12 of 12

Market Street reopened after truck hits funeral home

1 / 12

Back to Gallery

Two people were injured when a semi-truck burst into flames after slamming into a funeral home in San Francisco’s Castro neighborhood early Thursday, firefighters said.

The driver of a Southwest Traders Inc. truck, who was delivering goods to Starbucks coffee shops, slammed into the Arthur J.Sullivan & Company Funeral Home near 15th and Market streets at 12:36 a.m., igniting both the truck and the building, authorities said.

The driver was traveling westbound on Market Street when the hood of the semi flew open and the driver heard a bang before losing control and crashing, police said. The truck and building then caught fire.

Firefighters called a second alarm at 12:41 a.m. to the building at 2254 Market St. and had the flames under control at 1:50 a.m.

A woman sleeping in an upstairs unit of the funeral home was unharmed, said manager Fred Shevchenko. He said the funeral home did not sustain major structural damage.

“We’re really, really lucky,” Shevchenko said. “It was pretty chaotic. Our concern after seeing the cab was that the person was all right.”

Market Street was closed in both directions for a time as crews cleaned up the scene. By 7 a.m., eastbound lanes on Market were open, and westbound lanes were reopened early Thursday afternoon after the charred 18-wheeler as removed, police said.

A hazardous materials team was called to remove extra fuel from the big rig before it could be towed away.

The truck driver and a passenger were taken to San Francisco General Hospital. The driver was later released. Authorities did not know the condition of the passenger, but police said one person had a broken leg.