In vivo two-photon microscopy provides the foundation for an array of powerful techniques for optically measuring and perturbing neural circuits. However, challenging tissue properties and geometry have prevented high-resolution optical access to regions situated within deep fissures. These regions include the medial prefrontal and medial entorhinal cortex (mPFC and MEC), which are of broad scientific and clinical interest. Here, we present a method for in vivo, subcellular resolution optical access to the mPFC and MEC using microprisms inserted into the fissures. We chronically imaged the mPFC and MEC in mice running on a spherical treadmill, using two-photon laser-scanning microscopy and genetically encoded calcium indicators to measure network activity. In the MEC, we imaged grid cells, a widely studied cell type essential to memory and spatial information processing. These cells exhibited spatially modulated activity during navigation in a virtual reality environment. This method should be extendable to other brain regions situated within deep fissures, and opens up these regions for study at cellular resolution in behaving animals using a rapidly expanding palette of optical tools for perturbing and measuring network structure and function.two-photon imaging | medial prefrontal cortex | medial entorhinal cortex | grid cell O ptical tools provide powerful means to measure and perturb the structure and function of neural circuits (1). However, a key set of brain regions remains outside the reach of cellularresolution optical methods: those situated within deep fissures. In the rodent brain, these areas include the medial prefrontal and medial entorhinal cortex (mPFC and MEC), two of the most widely studied regions supporting cognitive functions. The mPFC is centrally important to planning, executive function, learning, and memory (2, 3). Understanding how the mPFC implements these functions at a mechanistic, circuit level remains a longstanding goal of the field. The entorhinal cortex forms the interface between the neocortex and hippocampus and is believed to play an essential role in episodic memory and spatial information processing. These functions are particularly associated with MEC grid cells, which fire on a hexagonal lattice as an animal moves through an environment (4). Grid cells have galvanized a large body of work investigating their computational role and the mechanisms underlying grid formation, which remain important, open questions (4, 5). Moreover, mPFC or MEC dysfunction is associated with addiction, depression, schizophrenia, Alzheimer's disease, and epilepsy.The study of the mPFC, MEC, and neighboring regions could be greatly advanced by in vivo, high-resolution optical tools. However, tissue properties and geometry present significant challenges to deploying these tools within deep fissures. For example, the depth of two-photon microscopy is limited by scattering and out-of-plane excitation (6). Access in the mammalian brain is therefore typically restricted to superficial regions (<500 ...