Magma is a hot, molten mixture of rock, minerals, and gases found beneath the Earth’s crust. It forms deep within the Earth, where temperatures are extremely high, and can melt solid rock. When magma cools and solidifies beneath the surface, it forms intrusive igneous rocks such as granite.