Light-sensitive 'caged' molecules provide a means of rapidly and noninvasively manipulating biochemical signals with submicron spatial resolution. Here we describe a new optical system for rapid uncaging in arbitrary patterns to emulate complex neural activity. This system uses TeO(2) acousto-optical deflectors to steer an ultraviolet beam rapidly and can uncage at over 20,000 locations per second. The uncaging beam is projected into the focal plane of a two-photon microscope, allowing us to combine patterned uncaging with imaging and electrophysiology. By photolyzing caged neurotransmitter in brain slices we can generate precise, complex activity patterns for dendritic integration. The method can also be used to activate many presynaptic neurons at once. Patterned uncaging opens new vistas in the study of signal integration and plasticity in neuronal circuits and other biological systems.