Based on the original experimental results and on the analysis of published data, the author suggests a consistent variant of the possible mechanism of carbon phase transitions in a subsurface layer of cast iron subjected to a special laser treatment. The phase transitions involve the formation of carbyne followed by its decomposition during cooling and conversion into pyrocarbon.