Optogenetic methods have emerged as a powerful tool for elucidating neural circuit activity underlying a diverse set of behaviors across a broad range of species. Optogenetic tools of microbial origin consist of light-sensitive membrane proteins that are able to activate (e.g., channelrhodopsin-2, ChR2) or silence (e.g., halorhodopsin, NpHR) neural activity ingenetically-defined cell types over behaviorally-relevant timescales.