Most natural diamonds are formed at high-pressure high-temperature conditions existing at depths of 140 to 190 kilometers (87 to 120 mi) in the Earth mantle. Carbon-containing minerals provide the carbon source, and the growth occurs over periods from 1 billion to 3.3 billion years (25% to 75% of the age of the Earth). Diamonds are brought close to the Earth surface through deep volcanic eruptions by a magma, which cools into igneous rocks known as kimberlites and lamproites. Diamonds can also be produced synthetically in a high-pressure high-temperature process which approximately simulates the conditions in the Earth mantle. An alternative, and completely different growth technique is chemical vapor deposition (CVD). Several non-diamond materials, which include cubic zirconia and silicon carbide and are often called diamond simulants, resemble diamond in appearance and many properties. Special gemological techniques have been specially developed to distinguish natural and synthetic diamonds and diamond simulants.
Diamond has a wide bandgap of 5.5 eV corresponding to the deep ultraviolet wavelength of 225 nanometers. This means pure diamond should transmit visible light and appear as a clear colorless crystal. Colors in diamond originate from lattice defects and impurities. The diamond crystal lattice is exceptionally strong and only atoms of nitrogen, boron and hydrogen can be introduced into diamond during the growth at significant concentrations (up to atomic percents). Transition metals Ni and Co, which are commonly used for growth of synthetic diamond by high-pressure high-temperature techniques, have been detected in diamond as individual atoms; the maximum concentration is 0.01% for Ni and even much less for Co. Virtually any element can be introduced to diamond by ion implantation.