The allotropes of carbon

Graphite and diamond are two different elementary substances formed by carbon atoms. They are called allotropes of carbon. High temperatures and high pressures can transform graphite to diamond. (Formation of diamonds in the earth's crust, manufacture of synthetic diamonds).

Diamond

Graphite

(The "sticks" between carbon atoms don't exist in reality. They serve only to illustrate the tri-dimensional structure.)