Magma
When they come up through the crust, magmas may feed a volcano and come out  as lava. But they may solidify underground to form an intrusion (magma which cools and becomes solid). Intrusions eventually cool down and become igneous dikes or  sills.