Optogenetics is a technique in neuroscience which uses light to control cells in living tissue, typically neurons, that have been genetically modified to express light-sensitive ion channels. By doing this, it is possible to measure and control the activity of these cells with remarkable precision. This can be used to study the function of neural circuits in the brain, as well as to develop new treatments for neurological disorders.