There are about the same number of stars in our galaxy as there are neurons in our brain. To study stars and neurons using optical imaging, we face similar challenges of image degradation by aberrations and scattering. Adaptive optics, a form of wavefront shaping, has revolutionized astronomy by allowing ground-based telescopes to obtain high-resolution images of stars through Earth's turbulent atmosphere. Applying wavefront shaping to brain imaging is similarly beneficial. In this talk, I will discuss our development of wavefront shaping techniques that achieve sharper, deeper, and faster imaging of the mouse brain in vivo. I will also discuss how these methods have helped us delineate the progression of neural responses to visual inputs of different orientations and directions as information flows through the mouse primary visual cortex. Joint with Structural & Quantitative Biology Seminar.