Stress is known to impair working memory performance. This disruptive effect of stress on working memory has been linked to a decrease in the activity of the dorsolateral prefrontal cortex (dlPFC). In the present experiment, we tested whether transcranial direct current stimulation (tDCS) of the dlPFC can prevent stress-induced working memory impairments. We tested 120 healthy participants in a 2 d, sham-controlled, double-blind between-subjects design. Participants completed a test of their individual baseline working memory capacity on day 1. On day 2, participants were exposed to either a stressor or a control manipulation before they performed a visuospatial and a verbal working memory task. While participants completed the tasks, anodal, cathodal, or sham tDCS was applied over the right dlPFC. Stress impaired working memory performance in both tasks, albeit to a lesser extent in the verbal compared with the visuospatial working memory task. This stress-induced working memory impairment was prevented by anodal, but not sham or cathodal, stimulation of the dlPFC. Compared with sham or cathodal stimulation, anodal tDCS led to significantly better working memory performance in both tasks after stress. Our findings indicate a causal role of the dlPFC in working memory impairments after acute stress and point to anodal tDCS as a promising tool to reduce cognitive deficits related to working memory in stress-related mental disorders, such as depression, schizophrenia, or post-traumatic stress disorder.