Carbon deposition occurs due to the breakdown of hydrocarbon molecules under certain conditions. These conditions include high temperatures, low hydrogen-to-carbon ratios, and the presence of specific catalytic materials that facilitate the formation of carbon. The nature of the feedstock and operational conditions also play a crucial role. For instance, heavier hydrocarbons and higher temperatures tend to accelerate carbon formation.