The rock gets weathered and eroded to sediments. Then the sediments pile on top of each other and become cemented. Now they have become AA sedimentary rock.
Igneous rock is rock formed from a volcanic eruption. Sedimentary rock can change into metamorphic rock (which shares some properties with igneous rock) under enough heat/pressure. If it gets deep...