An oxocarbon or oxide of carbon is a chemical compound consisting only of carbon and oxygen.
The simplest and most common oxocarbons are carbon monoxide (CO) and carbon dioxide (CO2). Many other stable (practically if not thermodynamically) or metastable oxides of carbon are known, but they are rarely encountered, such as carbon suboxide (C3O2 or O=C=C=C=O) and mellitic anhydride (C12O9).
While textbooks will often list only the first three, and rarely the fourth, a large number of other oxides are known today, most of them synthesized since the 1960s. Some of these new oxides are stable at room temperature. Some are metastable or stable only at very low temperatures, but decompose to simpler oxocarbons when warmed. Many are inherently unstable and can be observed only momentarily as intermediates in chemical reactions or are so reactive that they can exist only in the gas phase or under matrix isolation conditions.
The inventory of oxocarbons appears to be steadily growing. The existence of graphene oxide and of other stable polymeric carbon oxides with unbounded molecular structures suggests that many more remain to be discovered.
Carbon dioxide (CO2) occurs widely in nature, and was incidentally manufactured by humans since pre-historical times, by the combustion of carbon-containing substances and fermentation of foods such as beer and bread. It was gradually recognized as a chemical substance, formerly called spiritus sylvestre ("forest spirit") or "fixed air", by various chemists in the 17th and 18th centuries.
Carbon monoxide may occur in combustion, too, and was used (though not recognized) since antiquity for the smelting of iron from its ores. Like the dioxide, it was described and studied in the West by various alchemists and chemists since the Middle Ages. Its true composition was discovered by William Cruikshank in 1800.