Inhibition in task switching is inferred from n-2 repetition costs: the observation that ABA task switching sequences are responded to slower than CBA sequences. This is thought to reflect the persisting inhibition of task A, which slows re-activation attempts. Mayr (2002) reported an experiment testing a critical non-inhibitory account of this effect, namely episodic retrieval: If the trial parameters for task A match across an ABA sequence, responses should be facilitated due to priming from episodic retrieval; a cost would occur if trial parameters mismatch. In a rule-switching paradigm, Mayr reported no significant difference in n-2 repetition cost when the trial parameters repeated or switched across an ABA sequence, in clear contrast to the episodic retrieval account. What remains unclear is whether successful episodic retrieval modulates the n-2 repetition cost. Across three experiments-including a close replication of Mayr-we find clear evidence of reduced n-2 task repetition costs when episodic retrieval is controlled. We find that the effect of episodic retrieval on the n-2 task repetition cost is increased when the cue-task relationship is made more abstract, suggesting the effect is due to interference in establishing the relevant attentional set. We also demonstrate that the episodic retrieval effect is not influenced by retrieval of low-level, perceptual, elements. Together, the data suggest the n-2 task repetition cost-typically attributable to an inhibitory mechanismalso reflects episodic retrieval effects.Keywords: Task switching; inhibition, n-2 repetition cost, episodic retrieval, cognitive controlWe are grateful to Ulrich Mayr, Michael Masson, and an anonymous reviewer for helpful comments on a previous version of this article. Please address correspondence to James A. Grange, School of Psychology, Dorothy Hodgkin Building, Keele University, Keele, UK, ST5 5BG. Email: grange.jim@gmail.com. All raw data and analysis code are available to download at http://bit.ly/1P5cd0G.