Cells in the brain act as components of extended networks. Therefore, to understand neurobiological processes in a physiological context, it is essential to study them in vivo. Super-resolution microscopy has spatial resolution beyond the diffraction limit, thus promising to provide structural and functional insights that are not accessible with conventional microscopy. However, to apply it to in vivo brain imaging, we must address the challenges of 3D imaging in an optically heterogeneous tissue that is constantly in motion. We optimized image acquisition and reconstruction to combat sample motion and applied adaptive optics to correcting sample-induced optical aberrations in super-resolution structured illumination microscopy (SIM) in vivo. Lastly, we imaged the brains of live zebrafish larvae and mice and observed the dynamics of dendrites and dendritic spines at nanoscale resolution.