Igneous rock and how is it formed

Igneous rock is a type of rock formed from the cooling and solidification of magma or lava. It is one of the three main rock types, the others being sedimentary and metamorphic. Igneous rock is formed when magma cools and crystallizes either at the Earth's surface or beneath it.