By comparing magma from different eruptions, scientists have learned that the composition of the magma affects how explosive a volcanic eruption is.