Whole-brain functional magnetic resonance imaging (MRI) was used to examine the neural substrates of internally (endogenous) and externally (exogenous) induced covert shifts of attention. Thirteen normal subjects performed three orienting conditions: endogenous (location of peripheral target predicted by a central arrow 80% of the time), exogenous (peripheral target preceded by a noninformative peripheral cue), and control (peripheral target preceded by noninformative central cue). Behavioral results indicated faster reaction times (RTs) for valid than for invalid trials for the endogenous condition but slower RTs for valid than for invalid trials for the exogenous condition (inhibition of return). The spatial extent and intensity of activation was greatest for the endogenous condition, consistent with the hypothesis that endogenous orienting is more effortful (less automatic) than exogenous orienting. Overall, we did not observe distinctly separable neural systems associated with the endogenous and exogenous orienting conditions. Both exogenous and endogenous orienting, but not the control condition, activated bilateral parietal and dorsal premotor regions, including the frontal eye fields. These results suggest a specific role for these regions in preparatory responding to peripheral stimuli. The right dorsolateral prefrontal cortex (BA 46) was activated selectively by the endogenous condition. This finding suggests that voluntary, but not reflexive, shifts of attention engage working memory systems.