Carbon is a non-metal that forms more compounds than any other element. It can form long chains and attach to other atoms due to its unique ability to bond with itself. Pure carbon exists in two allotropes, diamond and graphite, which have identical chemical composition but different physical properties due to variations in atomic structure. Hydrocarbons are compounds of carbon and hydrogen, including saturated alkanes and unsaturated alkenes and alkynes, with alkenes containing double bonds and alkynes containing triple bonds between carbon atoms.