The Earth's rocks fall into three categories based on how they're formed. Igneous rock (granite, basalt, obsidian) is formed from the hardening of molten rock (lava), sedimentary rock (shale, sandstone, coal) is formed by the gradual despositing and cementing of rock and other debris, and metamorphic rock (marble, slate, quartzite) which is formed when existing rock is altered though pressure, temperature, or chemical processes.
__________ rock (granite, basalt, obsidian) is formed from the hardening of molten rock.