A sharp decline in deaths from malnutrition and infectious diseases like measles and tuberculosis has caused a shift in global mortality patterns over the past 20 years, according to a report published on Thursday, with far more of the world’s population now living into old age and dying from diseases mostly associated with rich countries, like cancer and heart disease.

The shift reflects improvements in sanitation, medical services and access to food throughout the developing world, as well as the success of broad public health efforts like vaccine programs. The results are striking: infant mortality declined by more than half from 1990 to 2010, and malnutrition, the No. 1 risk factor for death and years of life lost in 1990, has fallen to No. 8.

At the same time, chronic diseases like cancer now account for about two out of every three deaths worldwide, up from just over half in 1990. Eight million people died of cancer in 2010, 38 percent more than in 1990. Diabetes claimed 1.3 million lives in 2010, double the number in 1990.

“The growth of these rich-country diseases, like heart disease, stroke, cancer and diabetes, is in a strange way good news,” said Ezekiel Emanuel, chairman of the department of medical ethics and health policy at the University of Pennsylvania. “It shows that many parts of the globe have largely overcome infectious and communicable diseases as a pervasive threat, and that people on average are living longer.”