Magma originates in the lower part of the Earth's crust and in the upper portion of the mantle. Most of the mantle and crust are solid, so the presence of magma is crucial to understanding the geology and morphology of the mantle.
Where does magma come from and how does it form?
Magma forms from partial melting of mantle rocks. As the rocks move upward (or have water added to them), they start to melt a little bit. These little blebs of melt migrate upward and coalesce into larger volumes that continue to move upward. They may collect in a magma chamber or they may just come straight up.
Where does magma or lava come from?
Magma is composed of molten rock and is stored in the Earth's crust. Lava is magma that reaches the surface of our planet through a volcano vent.