Diamonds are formed deep within the Earth's mantle under high pressure and temperature conditions. Over millions of years, carbon atoms crystallize to create the unique structure of diamonds, which are then brought to the surface through volcanic eruptions.