When the molten lava comes on the earth's surface, it rapidly cools down and becomes solid. Rocks formed in this way on the crust are extrusive igneous rocks.Sometimes the molten magma cools down deep inside the earth's crust. Solid rocks so formed are the intrusive igneous rocks.