Visual information is important for accurate spatial coding and memory-guided navigation. As a crucial area for spatial cognition, the medial entorhinal cortex (MEC) harbors diverse spatially tuned cells and functions as the major gateway relaying sensory inputs to the hippocampus containing place cells. However, how visual information enters the MEC has not been fully understood. Here, we identify a pathway originating in the secondary visual cortex (V2) and directly targeting MEC layer 5a (L5a). L5a neurons served as a network hub for visual processing in the MEC by routing visual inputs from multiple V2 areas to other local neurons and hippocampal CA1. Interrupting this pathway severely impaired visual stimulus-evoked neural activity in the MEC and performance of mice in navigation tasks. These observations reveal a visual cortical-entorhinal pathway highlighting the role of MEC L5a in sensory information transmission, a function typically attributed to MEC superficial layers before.