Modern diamonds are made by so called chemical vapour de position where you take compound in the gas phase at high temperature, and it decomposes to give a layer of carbon, and if you do it in the right conditions, you can build up diamond literally layer by layer.