Optogenetics is a technology that allows targeted, fast control of precisely defined events in biological systems as complex as freely moving mammals. By delivering optical control at the speed (millisecond-scale) and with the precision (cell type–specific) required for biological processing, optogenetic approaches have opened new landscapes for the study of biology, both in health and disease.