Earthquakes and volcanoes occur in three main zones around the world. Earthquakes are caused by the movement of tectonic plates, with the most common type occurring along faults. The San Andreas fault in California regularly produces earthquakes, including the 1906 quake in San Francisco. Volcanoes form when magma reaches the surface from underground chambers; the type of eruption determines the volcano's shape, such as cinder cones from explosive eruptions or shield volcanoes from fluid lava flows. Major zones of earthquake and volcanic activity encircle the Pacific Ocean, extend through the Mediterranean region, and follow the Mid-Atlantic Ridge under the ocean.