A mineral is, broadly speaking, a solid chemical compound that occurs naturally in pure form. Minerals are most commonly associated with rocks due to the presence of minerals within rocks. These rocks may consist of one type of mineral, or may be an aggregate of two or more different types of minerals, spatially segregated into distinct phases. Compounds that occur only in living beings are usually excluded, but some minerals are often biogenic (such as calcite) and/or are organic compounds in the sense of chemistry (such as mellite). Moreover, living beings often synthesize inorganic minerals (such as hydroxyapatite) that also occur in rocks.