Learning about the composition and characteristics of magma is important in understanding volcanic eruptions.