Here's why:
* Silicate minerals: These are the primary components of magma, forming the solid portion when magma cools. Common examples include quartz, feldspar, and mica.
* Dissolved gases: These are primarily water vapor, but also include carbon dioxide, sulfur dioxide, and others. These gases are dissolved under pressure within the magma, and their release drives volcanic eruptions.
* Crystals: As magma cools, some minerals crystallize out of the melt. These crystals can range in size and abundance, and their composition impacts the properties of the magma.
It's important to remember that the specific composition of magma can vary greatly based on factors like its source, temperature, and pressure.