Conversion of carbon-containing organic matter into carbon or carbonic residue. The formation of coal is an example of carbonization.