Magma is thought to come from the upper mantle of the Earth. The upper mantle is located between the crust and the outer core of the Earth, and it is made up of solid rock. However, the upper mantle is not completely solid, and it contains some molten rock called magma. Magma can rise to the surface of the Earth through volcanoes, or it can cool down and solidify underground to form igneous rocks.