What layer of the earth does magma form?
Magma is part of the layer just under the crust.
It tell us that while everything seems solid underfoot in fact that is not quite so, and there are only relatively thin layers on crest that move and float on a sea of magma underneath, it is this that moves the continents approximately the surface of the planet, all be it very slowly indeed.