What transforms carbon into diamonds
Pressure. Carbon that has been compressed, has been "squished" with a lot of pressure in order to be turned into diamonds.