Igneous rocks are the primary rocks which are formed by the solidification of molten magma or lava under the surface of earth or on the surface of earth after they cool down .The magma which is formed under the surface of earth due to high pressure and temperature when rises to surface cools down resulting into igneous rocks.