A new ' photofootprinting ' technique, which uses light to detect protein-DNA contacts as well as changes in the structure of DNA at the base pair level, has been developed and used to detect contacts between lac repressor and the lac operator in Escherichia coli cells.