Agricultural pests cause enormous losses in annual agricultural production. Understanding the evolutionary responses and adaptive capacity of agricultural pests under climate change is crucial for establishing sustainable and environmentally friendly agricultural pest management. In this study, we integrate climate modeling and landscape genomics to investigate the distributional dynamics of the cotton bollworm (Helicoverpa armigera) in the adaptation to local environments and resilience to future climate change. Notably, the predicted inhabitable areas with higher suitability for the cotton bollworm could be eight times larger in the coming decades. Climate change is one of the factors driving the dynamics of distribution and population differentiation of the cotton bollworm. Approximately 19,000 years ago, the cotton bollworm expanded from its ancestral African population, followed by gradual occupations of the European, Asian, Oceanian, and American continents. Furthermore, we identify seven subpopulations with high dispersal and adaptability which may have an increased risk of invasion potential. Additionally, a large number of candidate genes and SNPs linked to climatic adaptation were mapped. These findings could inform sustainable pest management strategies in the face of climate change, aiding future pest forecasting and management planning.