To be classified as a "true" mineral, a substance must be a solid and have a crystal structure. It must also be an inorganic, naturally-occurring, homogeneous substance with a defined chemical composition. The chemical composition may vary between end members of a mineral system. For example the plagioclasefeldspars comprise a continuous series from sodium-rich albite (NaAlSi3O8) to calcium-rich anorthite (CaAl2Si2O8) with four recognized intermediate compositions between. Mineral-like substances that don't strictly meet the definition are sometimes classified as mineraloids. Other natural-occurring substances are Nonminerals. Industrial minerals is a market term and refers to commercially valuable mined materials (see also Minerals and Rocks section below).
A crystal structure is the orderly geometric spatial arrangement of atoms in the internal structure of a mineral. There are 14 basic crystal lattice arrangements of atoms in three dimensions, and these are referred to as the 14 "Bravais lattices". Each of these lattices can be classified into one of the six crystal systems, and all crystal structures currently recognized fit in one Bravais lattice and one crystal system. This crystal structure is based on regular internal atomic or ionic arrangement that is often expressed in the geometric form that the crystal takes. Even when the mineral grains are too small to see or are irregularly shaped, the underlying crystal structure is always periodic, and can be determined by X-ray diffraction.
Chemistry and crystal structure together define a mineral. In fact, two or more minerals may have the same chemical composition, but differ in crystal structure (these are known as polymorphs). For example, pyrite and marcasite are both iron sulfide, but their arrangement of atoms differs. Similarly, some minerals have different chemical compositions, but the same crystal structure: for example, halite (made from sodium and chlorine), galena (made from lead and sulfur) and periclase (made from magnesium and oxygen) all share the same cubic crystal structure.