Everyone experiences stress occasionally, but severe or chronic stress can have long-lasting effects on brain structure and function. This Focus issue highlights the latest advances in our understanding of how the brain responds to stress, the mechanisms that mediate the beneficial and adverse effects of stress on brain functioning, and factors that confer vulnerability and resilience to stress.