Diamonds are formed under high pressure and temperature deep within the Earth's mantle, typically from a carbon-rich source material such as kimberlite. Kimberlite is a rare, igneous rock that is composed primarily of olivine and phlogopite mica. Diamonds can also form from eclogite, which is a high-pressure metamorphic rock found in subduction zones.