This is a description of how volcanic rocks are made. This is a metamorphic way of rock formation that occurs by having lava cool down and stack on top of other land or other previously cooled lava. When it happens under the ocean, entire islands can get created eventually with layer after layer of lava cooling down. Hope this helps. Let me know if you need additional help!