An igneous rock layer formed when magma hardens beneath Earth's surface.