A newly developed head-mounted miniature microscope can capture images of all cortical layers of a freely moving rat.