Optogenetics is a technique used in neuroscience and cell biology to control cells with light. It involves using genetic material that allows specific cells to respond to light, allowing researchers to manipulate and study neural activity by shining light on specific areas of the brain or tissue samples.