Igneous rock is created as volcanic deposits of molten rock cool and solidify, while sedimentary builds up as new deposits of sediment form layers that compact and harden over geologically long timescales.