The factor that best explains the trend of large numbers of China's population moving from rural areas to urban settings during the last half of the twentieth century is:
D. rapid economic development due to industrialization.
This period saw significant industrial growth, which created job opportunities in urban areas, leading to a massive migration from rural regions to cities as people sought better employment and living conditions.