Gross primary productivity (GPP) is a reliable measure of the carbon sink potential of terrestrial ecosystems and is an essential element of terrestrial carbon cycle research. This study employs the diffuse fraction-based two-leaf light-use efficiency (DTEC) model to imitate China’s monthly GPP from 2001 to 2020. We studied the trend of GPP, investigated its relationship with climatic factors, and separated the contributions of climate change and human activities. The findings showed that the DTEC model was widely applicable in China. During the study period, China’s average GPP increased significantly, by 9.77 g C m−2 yr−1 (p < 0.001). The detrimental effect of aerosol optical depth (AOD) on GPP was more widespread than that of total precipitation, temperature, and solar radiation. Areas that benefited from AOD, such as Northwest China, experienced significant increases in GPP. Climate change and human activities had a primary and positive influence on GPP during the study period, accounting for 28% and 72% of the increase, respectively. Human activities, particularly ecological restoration projects and the adoption of advanced agricultural technologies, played a significant role in China’s GPP growth. China’s afforestation plan was particularly notable, with the GPP increasing in afforestation areas at a rate greater than 10 g C m−2 yr−1. This research provides a theoretical foundation for the long-term management of China’s terrestrial ecosystems and helps develop adaptive ecological restoration tactics.