Coke formation involves several mechanisms, primarily due to the thermal decomposition of hydrocarbons. These mechanisms include: - Polymerization: Smaller hydrocarbon molecules combine to form larger, more complex structures. - Condensation: These larger molecules then condense to form carbon-rich deposits. - Dehydrogenation: Loss of hydrogen atoms from hydrocarbons, leading to the formation of carbon.