While it's true that magma contains solid crystals and dissolved gases, the primary component of magma is molten rock, making it a liquid.