Magma (from Ancient Greek μάγμα (mágma) meaning "thick unguent") is a mixture of molten or semi-molten rock, volatiles and solids.