In a CVD system, a substrate is exposed to one or more volatile precursors, which react and/or decompose on the substrate surface to produce the desired deposit. The process involves a series of steps including gas phase reactions, transport of reactants to the substrate, surface reactions, and removal of byproducts. The reaction can proceed via thermal activation, plasma enhancement, or photon activation.