Optogenetic is a technique that combines optics and genetics to control specific neurons. This technique usually uses adenoviruses that encode photosensitive protein. The adenovirus may concentrate in a specific neural region. By shining light on the target nerve region, the photosensitive protein encoded by the adenovirus is controlled. Photosensitive proteins controlled by light can selectively allow ions inside and outside the cell membrane to pass through, resulting in inhibition or activation effects. Due to the high precision and minimally invasive, optogenetics has achieved good results in many fields, especially in the field of neuron functions and neural circuits. Significant advances have also been made in the study of many clinical diseases. This review focuses on the research of optogenetics in the field of neurobiology. These include how to use optogenetics to control nerve cells, study neural circuits, and treat diseases by changing the state of neurons. We hoped that this review will give a comprehensive understanding of the progress of optogenetics in the field of neurobiology.