Synthesis of chain molecules such as DNA is carried out in a conduit
having an interior channel with an inlet end and an outlet end. At least
one wall of the conduit is substantially transparent to selected
wavelengths of light. Solid carrier particles are contained within the
interior channel of the conduit. A plurality of controllable light
sources are mounted at spaced locations along the length of the
transparent wall of the conduit to allow selective illumination of
separated sections of the particles within the conduit. When a light
source is turned on, a photodeprotecting group is removed from the
carrier particles in the section that is illuminated by the light source.
A reagent containing a selected base is flowed through the conduit so
that the base will attach to the carrier particles in those sections
which have been exposed to light and deprotected.