Magma may become solid by cooling slowly below the surface. This makes "plutonic" rocks such as granite. When magma comes out from the ground in a volcano it is called lava. Lava cools quickly, and forms other kinds of rock such as basalt. 