There is increasing human and animal evidence that brain oscillations play a critical role in the development of spatial cognition. In rat pups, disruption of hippocampal rhythms via optogenetic stimulation during the critical period for memory development impairs spatial cognition. Early-life seizures are associated with long-term deficits in spatial cognition and aberrant hippocampal oscillatory activity. Here we asked whether modulation of hippocampal rhythms following early-life seizures can reverse or improve hippocampal connectivity and spatial cognition. We used optogenetic stimulation of the medial septum to induce physiological 7 Hz theta oscillations in the hippocampus during the critical period of spatial cognition following early-life seizures.Optogenetic stimulation of the medial septum in control and rats subjected to early-life seizures resulted in precisely regulated frequency-matched hippocampal oscillations. Rat pups receiving active blue light stimulation performed better than the rats receiving inert yellow light in a test of spatial cognition. The improvement in spatial cognition in these rats was associated with a faster theta frequency and higher theta power, coherence and phase locking value in the hippocampus than rats with early-life seizures receiving inert yellow light. These findings indicate that following early life seizures, modification of hippocampal rhythms may be a potential novel therapeutic modality.