Controlling nerve cells with the aid of light: this is made possible by optogenetics. It enables, for example, the investigation of neurobiological processes with unprecedented spatial and temporal precision. Biophysicists have now succeeded in explaining the switching mechanism.