A significant greening trend has been reported globally in recent decades. The greening indicates the improvement in net primary production (NPP) in vegetation. Adopting statistics-based regression models, we investigated the dynamics of NPP and its climatic drivers in main ecosystems (forest land, grass land, and unused land) over China during the period 2000–2021. The results confirmed an increasing NPP covering approximately 86% area in the main ecosystems. NPP exhibited an increase rate of 6.11 g C m−2 yr−1 in forest land, 4.77 g C m−2 yr−1 in grass land, and 1.25 g C m−2 yr−1 in unused land, respectively. Over the same period, warm–wet climate trend was observed covering approximately 90% of the main ecosystems. The warm–wet climate has had a positive effect rather than negative effect on NPP in the main ecosystems, judging by their significant positive correlation. Our results suggested that the increase in annual precipitation exerted much more important effect on the increasing NPP. The warm–wet climate trend contributes to the upward trend in NPP, even if variability in NPP might involve the influence of solar radiation, atmospheric aerosols, CO2 fertilization, nitrogen deposition, human intervention, etc. [ABSTRACT FROM AUTHOR]