As animals forage, they must obtain useful targets by orchestrating appropriate actions that range from searching to chasing, biting and carrying. Here, we reveal that neurons positive for the α subunit of Ca2+/calmodulin-dependent kinase II (CaMKIIα) in the medial preoptic area (MPA) that send projections to the ventral periaqueductal gray (vPAG) mediate these target-directed actions in mice. During photostimulation of the MPA–vPAG circuit, mice vigorously engaged with 3D objects and chased moving objects. When exposed to a cricket, they hunted down the prey and bit it to kill. By applying a head-mounted object control with timely photostimulation of the MPA–vPAG circuit, we found that MPA–vPAG circuit-induced actions occurred only when the target was detected within the binocular visual field. Using this device, we successfully guided mice to navigate specified routes. Our study explains how the brain yields a strong motivation to acquire a target object along the continuum of hunting behavior.