Answer:
The magmatic rock or the igneous rock refers to one of the three prime kinds of rock, the others are metamorphic and sedimentary rocks. The formation of igneous rock takes place via the cooling and solidification of lava or magma.
Of the igneous rocks, the intrusive igneous rocks form the major portion of the igneous rocks and are produced from the magma, which solidifies and cools inside the planet's crust, enclosed by pre-existing rocks. The cooling of the magma takes place gradually, and as a consequence, these rocks are coarse-grained.