Minerals have several different ways in which they can form, which relate to the different ways that rocks can form: igneous minerals crystallize from molten rock, metamorphic minerals are recrystallized from other minerals without melting, and sedimentary minerals precipitate from water and, sometimes, from air.