What are igneous rock and how are they formed

Igneous rocks are formed from the solidification and cooling of molten magma. This process can occur either beneath the Earth's surface, where the magma cools slowly and forms intrusive igneous rock, or on the Earth's surface, where the magma cools quickly and forms extrusive igneous rock.

Intrusive igneous rocks, such as granite and diorite, are formed when magma is trapped beneath the Earth's surface and cools slowly, allowing large mineral crystals to form. Extrusive igneous rocks, such as basalt and rhyolite, are formed when magma erupts onto the Earth's surface as lava and cools quickly, resulting in smaller mineral crystals or glassy textures.

Igneous rocks can be classified into different types based on their mineral composition, texture, and formation environment. They are an important component of the Earth's crust and play a crucial role in the formation of other rocks and geological processes.