Successful navigation relies on reciprocal transformations between spatial representations in world-centered (allocentric) and self-centered (egocentric) frames of reference. The neural basis of allocentric spatial representations has been extensively investigated with grid, border, and head-direction cells in the medial entorhinal cortex (MEC) forming key components of a 'cognitive map'. Recently, egocentric spatial representations have also been identified in several brain regions, but evidence for the coexistence of neurons encoding spatial variables in each reference frame within MEC is so far lacking. Here, we report that allocentric and egocentric spatial representations are both present in rodent MEC, with neurons in deeper layers representing the egocentric bearing and distance towards the geometric center and / or boundaries of an environment. These results demonstrate a unity of spatial coding that can guide efficient navigation and suggest that MEC may be one locus of interactions between egocentric and allocentric spatial representations in the mammalian brain.
© 2025. The Author(s).