Diamond and graphite are two allotropes of carbon that differ significantly in their physical properties. Diamonds form under high temperature and pressure deep in the Earth's mantle, while graphite forms through the metamorphism of carbonaceous sediments. Despite being made of the same element, diamond is transparent, extremely hard, and thermally conductive, while graphite is black, soft, and electrically conductive. Both have important industrial applications, with diamond used in cutting and optics and graphite used in pencils, lubricants, and batteries.