The thermal conversion of organic matter in a source rock into hydrocarbons as burial temperature rises.