The study of the structure, properties, composition, reactions, and synthesis of carbon-containing compounds.