In natural environments, animals seeking resources face potential perils associated with foraging behavior, namely predation. Thus, animals must balance their needs with risks by utilizing adaptive behavioral strategies, such as adapting foraging behavior in the presence of environmental threats. The periaqueductal gray (PAG) has been implicated in the generation of defensive behaviors as part of this fear system. Specifically, the dorsal PAG (dPAG) is involved in escape when a threat is imminent (proximal), while the ventral PAG (vPAG) is involved in freezing when a threat is relatively remote (distal). Previous research has shown that the stimulation of the dPAG is an effective unconditioned stimulus (US) in fear conditioning because it transmits aversive US information to the amygdala, a crucial component of the fear conditioning system. Electrolytic lesions of the dPAG have shown to enhance defensive freezing in fear conditioning paradigms, supporting the view that the dPAG is involved in a circa-strike adaptive response to escape a predatory attack. In order to investigate the role of the dPAG in a risky foraging paradigm, I trained two groups of rats, sham controls (n=2) and dPAG lesions (n=4), to venture into a foraging area in which a remotely controlled robot surges and snaps as the animal approaches the food pellets placed at varying distances from the safe nest zone. The sham control animals learned quickly that the robot could not physically harm them as it always surged a fixed distance, successfully retrieving the pellets at all distances after the first two trials. The dPAG lesioned animals had a lower success rate of retrieving the pellets due to compromised escape behavior. These results suggest that the dPAG mediates threat detection and defensive responses in semi-naturalistic environments, shedding more light on the fear system to better understand anxiety disorders.