An organic compound is any member of a large class of gaseous, liquid, or solid chemical compounds whose molecules contain carbon. For historical reasons discussed below, a few types of carbon-containing compounds such as carbides, carbonates, simple oxides of carbon (such as CO and CO2), and cyanides, as well as the allotropes of carbon such as diamond and graphite, are considered inorganic.