Igneous - A rock formed by the cooling and crystallization of magma (molten rock) at or below the Earth's surface. Sedimentary - A rock formed as a result of the weathering process, either by compaction and cementation of rock mineral fragments, or the precipitation of dissolved minerals.