Olfaction is critical for survival because it allows animals to look for food and detect pheromonal cues. Neuropeptides modulate olfaction and behaviors in insects. While how the neuroregulation of olfactory recognition affects foraging behavior in termites is still unclear. Here, we analyzed the change after silencing the olfactory co-receptor gene (Orco) and the neuropeptide Y gene (NPY), and then investigated the impact of olfactory recognition on foraging behavior in Odontotermes formosanus under different predation pressures. The knockdown of Orco resulted in the reduced Orco protein expression in antennae and the decreased EAG response to trail pheromones. In addition, NPY silencing led to the damaged ability of olfactory response through downregulating Orco expression. Both dsOrco- and dsNPY-injected worker termites showed significantly reduced walking activity and foraging success. Additionally, we found that 0.1 pg/cm trail pheromone and nestmate soldiers could provide social buffering to relieve the adverse effect of predator ants on foraging behavior in worker termites with the normal ability of olfactory recognition. Our orthogonal experiments further verified that Orco/NPY genes are essential in manipulating termite olfactory recognition during foraging under different predation pressures, suggesting that the neuroregulation of olfactory recognition plays a crucial role in regulating termite foraging behavior.