Igneous rocks are formed due to the

a cooling of magma
b weathering of rocks
c changes in pressure
d deposition of sediment