Extrusive (lava) igneous rocks form

under the earth's surface

from fragments of other rocks

when molten rock cools above the earth's surface