A rock is a hard/solid material. Rocks are separated into different groups based off the minerals they have in them, the groups are metamorphic, igneous, and sedimentary. Rocks are formed by physical changes—such as melting, cooling, eroding, compacting, or deforming—that are part of the rock cycle.
hope this helps!