Flames engulfed the former harbor master's office at the San Leandro Marina Wednesday morning, the Alameda County Fire Department said.
No injuries were reported, according to the fire department.
The California Department of Fish and Wildlife and the U.S. Coast Guard were called to the scene. Crews left by the afternoon.
Neighbors in the area told NBC Bay Are they're not surprised by the fire. They said there had been at least one other similar structure fire in the marina.
"If you look at the place, look around, everything here is ravished, stolen, everything," said local resident Richard Niechdowicz. "It's funny. I was just thinking 'When are [the squatters] going to burn that down.'"
"That building has been abandoned for a few years now. Homeless people have been going in and out of there. That's a known problem," said Alameda County Fire Battalion Chief Carlos Leyva.
Local
Leyva said the cause of Wednesday's fire is still under investigation. It is now up to city official to decide what to do with the gutted building.
Get a weekly recap of the latest San Francisco Bay Area housing news. Sign up for NBC Bay Area’s Housing Deconstructed newsletter.