In this experiment, we demonstrate modulation of the pupillary light response by spatial working memory (SWM). The pupillary light response has previously been shown to reflect the focus of covert attention, as demonstrated by smaller pupil sizes when a subject covertly attends a location on a bright background compared to a dark background. We took advantage of this modulation of the pupillary light response to measure the focus of attention during a SWM delay. Subjects performed two tasks in which a stimulus was presented in the periphery on either the bright or the dark half of a black and white display. Importantly, subjects had to remember the exact location of the stimulus in only one of the two tasks. We observed a modulation of pupil size by background luminance in the delay period, but only when subjects had to remember the exact location. We interpret this as evidence for a tight coupling between spatial attention and maintaining information in SWM. Interestingly, we observed particularly strong modulation of background luminance at the beginning and end of the delay, but not in between. This is suggestive of strategic guidance of spatial attention by the content of spatial working memory when it is task relevant.