BEIJING (AP) — For seven decades, China’s Communist Party has ruled the world’s most populous country. As the country’s population crests and begins to shrink, experts say, it will face challenges ranging from supporting the elderly to filling the ranks of its military.

Population growth has been slowing for years, but the announcement Tuesday that the country’s population fell by about 850,000 in 2022 came sooner than expected.

“Those developments… may well feed domestic challenges at home and strategic challenges abroad. The Party, in short, may be in for a rough go,” said Mike Mazza, an analyst of Chinese military modernization at the American Enterprise Institute in Washington.

Others are less pessimistic.

“China’s increasingly becoming a higher-tech nation, so concentrating on improving the educational system, particularly in impoverished rural areas, and even in cities, is vital. So as well is increasing productivity. Wealthier people will buy more, which also increases GDP,” said June Teufel Dreyer, a Chinese politics specialist at the University of Miami.

With the trend expected to continue, the U.N. estimates China’s population will fall to around 1.313 billion by 2050 and keep shrinking from there.

Beijing previously tried to rein its population. Worries that China’s population was getting too big prompted it to adopt its “one-child policy” in the late 1970s. Beijing says the policy prevented 400 million additional births, but demographers disagree about how much of the drop in birth rates is explained by policy.

The one-child policy accelerated existing societal changes, notably the flocking of people to live in cities during the economic boom, demographers argue.

“Of course, the one-child policy had an effect,” said Sabine Henning, who heads the demographic change section at the U.N. Economic and Social Commission for Asia and the Pacific in Bangkok. “But lifestyles have changed. Living expenses have increased so people are less inclined to have children. All of this has resulted, of course, in a further decline in fertility since the one- child policy stopped.”

Experience in Europe and Japan shows how difficult it is to change mindsets and reverse the decline with government incentives and campaigns.

Faced with a crashing birthrate, the policy was abandoned seven years ago, but efforts to encourage bigger families have been largely unsuccessful, like similar efforts in other countries.

“It amazes me how everyone seems to agree that the planet already has too many people whose demands for even the basics of existence like food, water and shelter are placing intolerable demands on the ecosystem — yet as soon as the population of a country begins to decline, its government reacts with near panic,” Dreyer said.

Beijing’s most immediate demographic challenge is an aging population: Tuesday’s figures showed almost 20% of the population is now age 60 or older, and Chinese estimates say the number will rise to 30%, or more than 400 million people, by 2035.

Similar changes took decades in Europe.

“They had more time to adjust, whereas it’s happening much faster in in Asia,” said Srinivas Tata, director of the social development division at U.N. Economic and Social Commission for Asia and the Pacific in Bangkok.

To support this population of retirees, China may increase the retirement age, currently 50-55 for women and 60 for men.

The demographic news comes as China’s economy is still recovering from the three-year struggle against COVID-19, which not only battered the economy but sparked rare antigovernment and anti-party protest.

Even with a shrinking population, China maintains considerable economic advantages over emerging manufacturing rivals such as Vietnam and India, which is set to overtake China as most populous this year. China has superior infrastructure and long standing private sector relationships that it can rely on for years to come, said Mazza.

China’s political system also plays a role, said Mary Gallagher, a scholar of Chinese politics at the University of Michigan.

“Becoming the workshop of the world… requires a political system that can take advantage of that cheap young labor without much regard for the laborers’ political and civil rights,” Gallagher said.

U.S. economic sanctions and its push to block Beijing’s access to cutting-edge processors and chip-making technology are further complicating efforts at recovery.

The Party also faces a challenge finding qualified recruits for its military, the 2 million-member People’s Liberation Army, experts warn.

“It is doubtful that the PLA is getting the best and the brightest, given that families who have the means will discourage military service,” said Daniel Blumenthal, director of Asian Studies at the American Enterprise Institute, who focuses on East Asian security issues and Sino-American relations.

Blumenthal warns, however; “That said, if Xi decides he wants a war over Taiwan he will not be deterred by caring about one-child families.”

Some American observers argue that these challenges could prompt Beijing to make aggressive moves sooner. With the U.S. refocused on the Indo-Pacific, China’s economy slowing and the population shrinking, some in Washington see Beijing as facing a narrowing window for military action against the island.

The effects may not be known for some time.

“Since demographic changes happen slowly, at least at the start of the turn, their effect on China’s standing and influence globally will take time to happen,” said Steve Tsang, director of the China Institute at the London University School of Oriental and African Studies and a longtime observer of Chinese political and social trends.

With president and Party leader Xi Jinping committed to his program of achieving the “the great rejuvenation of the Chinese nation” by 2049, the long-predicted demographic trend has shown no sign of swaying his thinking on China’s overall direction, Tsang said.