The geological activities, tectonic forces originating within
the earth and process powered by the energy of sun, are responsible
for shaping and reshaping of earth. These activities are generally
slower in the order. The example of such activity is the formation
of rocks from magma.

The molten magma from volcanic eruption crystallizes to rocks
with the passage of time; these rocks brake down to the soil due to
the environmental effect like weathering, and this soil is again
converted to the rock such as sedimentary rocks. Hence, the
formation of rocks from the soil and soil to rocks takes place
regularly.

The figure given below represents the graphical representation
of magma to rock, soil, and rock in the environment.