This lecture explores the use of optogenetics to control brain function, focusing on Channelrhodopsin-2 (ChR2) as a light-activated cation channel for precise neuronal stimulation. It discusses in vivo applications, behavior modulation, single-cell stimulation, optogenetic inhibition, and tool development for manipulating various cellular processes.