Minerals and rocks can be identified based on their physical and chemical properties. A mineral is defined as a naturally occurring, inorganic solid with a definite chemical composition and crystal structure. Minerals may form from the cooling of lava or magma, or from chemical or physical changes to existing rocks. Rocks are composed of one or more minerals and can be classified as sedimentary, igneous, or metamorphic based on their formation process. The identification of a material as a mineral or rock involves testing its properties, such as hardness, crystal structure, or chemical reactivity.