Volcanic craters are formed through a combination of volcanic eruptions and subsequent collapse of the volcano's structure. During an eruption, magma rises to the surface and is expelled as lava, ash, and gases. As the magma chamber empties, the weight of the volcano may no longer be supported, leading to the collapse of the volcano's summit. This collapse creates a depression, known as a volcanic crater, at the top of the volcano. Over time, the crater may be further shaped by erosion and additional volcanic activity.