The authors describe cortical projections mediating the modulation of social behavior. Neural projections from the medial prefrontal cortex to the dorsal periaqueductal gray play a critical role in the behavioral adaptation to social defeat in mice.