In his final address as China’s prime minister, Wen warned of the nations growing divisions between rich and poor, the hazards of unchecked environmental degradation and the risks posed by unbalanced economic growth.