Igneous rock is formed when magma, which is liquid molten rock, cools or sets, solidifying into rock and rock formations. As this magma or molten rock emerges to the surface, it experiences a change in temperature and pressure, which forces it to cool and crystallize, forming rock.