Molten Rock or Magma is present beneath the surface of earth. It contains suspended crystals and gas bubbles along with molten rock. The process of Magma formation is simple as due to high temperatures under the earth's surface, the rocks melts and thus result in formation of Molten rock. Molten rock has a very high temperature, with the average range being 700 Degree Celsius - 1300 Degree Celsius.
They are classified as igneous rocks by how they are formed.(melted and then cooled) So the earths crust is subducted into the asthenosphere where it is mostly magma and melts. Then the magma rises towards the surface in currents and cools along the ways. The deeper they start forming the lager the crystals.
They are formed by the earth