Persistent neural activity lasting for seconds after transient stimulation has been observed in several brain areas. This activity has been taken to be indicative of the integration of inputs on long time scales. Passive membrane properties render neural time constants to be on the order of milliseconds. Intense synaptic bombardment, characteristic of in vivo states, was previously shown to further reduce the time scale of effective integration. We explored how long-term integration in single cells could be supported by dendritic spikes coupled with the theta oscillation, a prominent brain rhythm often observed during working memory tasks. We used a two-compartmental conductance-based model of a hippocampal pyramidal cell to study the interplay of intrinsic dynamics with periodic inputs in the theta frequency band. We show that periodic dendritic spiking integrates inputs by shifting the phase relative to an external oscillation, since spiking frequency is quasi-linearly modulated by current injection. The time-constant of this integration process is practically infinite for input intensities above a threshold (the integration threshold) and can be still several hundred milliseconds long below the integration threshold. The somatic compartment received theta frequency stimulation in antiphase with the dendritic oscillation. Consequently, dendritic spikes could only elicit somatic action potentials when they were sufficiently phase-shifted and thus coincided with somatic depolarization. Somatic depolarization modulated the frequency but not the phase of firing, endowing the cell with the capability to code for two different variables at the same time. Inputs to the dendrite shifted the phase of dendritic spiking, while somatic input was modulating its firing rate. This mechanism resulted in firing patterns that closely matched experimental data from hippocampal place cells of freely behaving rats. We discuss the plausibility of our proposed mechanism and its potential to account for the firing pattern of cells outside the hippocampus during working memory tasks. © 2005 Wiley-Liss, Inc.