Classify by origin
Igneous rocks form as magma or lava cools: basalt is a common volcanic example, granite an intrusive example. Sedimentary rocks form through sediment accumulation and lithification, or other sedimentary processes; sandstone is a useful example.
