That's liquefaction. It occurs during earthquakes when the water table rises in porous low density land filled areas reclaimed from former bay areas that have been filled in for urban expansion. San Francisco will be prone to this phenomenon. It's like building a house on quicksand.