Rocks are classified into the three main groups—sedimentary, metamorphic, and igneous—according to the method of their formation.
- Igneous rocks form from the solidification of molten material (magma or lava).
- Sedimentary rocks are formed from the accumulation and compaction of mineral and organic particles, as well as the precipitation of minerals from water.
- Metamorphic rocks arise from the alteration of existing rocks (igneous, sedimentary, or other metamorphic rocks) through heat, pressure, and chemical processes.
Thus, the correct response is: According to the method of their formation.