Graphite is the most stable allotrope at room temperature and normal pressure. However, diamond can become stable at high enough pressure.
A carbon phase diagtam may be found here:
Diamond is more stable at high pressure because it is denser, and high pressure tends to favor denser phases.
Diamond is commonly made synthetically by putting graphite under high pressure, and also high temperature plus a catalyst to make the transformation go at a feasible rate.