Abstract:How to fully unleash the institutional dividends of environmental regulation and enhance agricultural green total factor productivity (GTFP) represents a crucial strategy for achieving harmonious coexistence between humanity and nature in China’s agricultural modernization. This study initially explores the theoretical mechanisms through which environmental regulation influences agricultural GTFP from a novel geographical perspective. Subsequently, it employs the EBM-GML model to measure agricultural GTFP. The research then utilizes fixed-effect models, system generalized method of moments, regulatory effect models, and mediation models to empirically examine the impact of environmental regulation on agricultural GTFP and its underlying mechanisms. The findings are as follows: Firstly, China’s agricultural GTFP demonstrates a consistent upward trend, with an average annual growth rate of 2.22%. This growth is primarily driven by advancements in agricultural green technology, while changes in agricultural green efficiency are limited, and the growth exhibits significant spatial heterogeneity. Secondly, environmental regulations significantly contribute to the growth of agricultural GTFP, a conclusion that remains robust after rigorous testing and endogeneity considerations. Thirdly, from the perspective of physical geographical elements, elevation and topographic relief negatively moderate the impact of environmental regulations on agricultural GTFP, whereas temperature change and temperature inversion positively moderate this impact. The promotional effect of environmental regulation on agricultural GTFP is more pronounced in eastern regions, southern areas, and major agricultural production zones. Fourthly, from the perspective of social and economic factors, environmental regulation fosters agricultural GTFP growth through multiple channels: stimulating economic growth, promoting technological innovation, unleashing talent dividends, and optimizing industrial structures. This study offers a fresh perspective on understanding the relationship between environmental regulation and agricultural GTFP, while providing valuable insights for further refinement of agricultural environmental policies.