A specifically designed diazocine cross-linker affords complete conformational control of a small, globular protein by the photoisomeric state.