Grid cells recorded in the medial entorhinal cortex of freely moving rats exhibit firing at regular spatial locations and temporal modulation with theta rhythm oscillations (4 to 11 hertz). We analyzed grid cell spatial coding during reduction of network theta rhythm oscillations caused by medial septum (MS) inactivation with muscimol. During MS inactivation, grid cells lost their spatial periodicity, whereas head-direction cells maintained their selectivity. Conjunctive grid-by-head-direction cells lost grid cell spatial periodicity but retained head-direction specificity. All cells showed reduced rhythmicity in autocorrelations and cross-correlations. This supports the hypothesis that spatial coding by grid cells requires theta oscillations, and dissociates the mechanisms underlying the generation of entorhinal grid cell periodicity and head-direction selectivity.