Let me share with you about rocksForming rocks
Igneous rock and Metamorphic rock
When magma cools it solidifies and forms rocks. The type of rock formed depends on the chemical composition of the magma and how rapidly it cools. Magma that reaches the surface to become lava cools rapidly, resulting in rocks with small crystals such as basalt. Some of this magma may cool extremely rapidly and will form volcanic glass (rocks without crystals) such as obsidian. Magma trapped below ground in thin intrusions cools more slowly than exposed magma and produces rocks with medium-sized crystals. Magma that remains trapped in large quantities below ground cools most slowly resulting in rocks with larger crystals, such as granite and gabbro.
Existing rocks that come into contact with magma may be melted and assimilated into the magma. Other rocks adjacent to the magma may be altered by contact metamorphism or metasomatism as they are affected by the heat and escaping or externally-circulating hydrothermal fluids.
Volcanism on other bodies
Volcanism is not confined only to Earth, but is thought to be found on any body having a solid crust and fluid mantle. Evidence of volcanism should still be found on any body that has had volcanism at some point in its history. Volcanoes have indeed been clearly observed on other bodies in the Solar System – on some, such as Mars, in the shape of mountains that are unmistakably old volcanoes (most notably Olympus Mons ), but on Io actual ongoing eruptions have been observed. It can be surmised that volcanism exists on planets and moons of this type in other