Formation of temporal association memory and context-specific fear memory is thought to require medial entorhinal cortex (MEC) inputs to the hippocampus during learning events. However, whether the MEC inputs are also involved in memory formation during a post-learning period has not been directly tested yet. To examine this possibility, I optogenetically inhibited axons and terminals originating from bilateral dorsal MEC excitatory neurons in the dorsal hippocampus for 5 min right after contextual fear conditioning (CFC). Mice expressing eNpHR3.0 exhibited significantly less freezing compared to control mice expressing EGFP alone during retrieval test in the conditioned context 1 day after learning. In contrast, the same optogenetic inhibition of MEC inputs performed 30 min before retrieval test did not affect freezing during retrieval test, excluding the possibility of non-specific deleterious effect of optical inhibition on retrieval process. Same inhibition after auditory fear conditioning, an associative learning that does not require hippocampus activity, long-term memory was also spared. These results support that contextual fear memory formation requires MEC inputs to the hippocampus during a post-learning period.