The United States and China pledged Wednesday to take ambitious action to limit greenhouse gases, aiming to inject fresh momentum into the global fight against climate change ahead of make-or-break climate talks next year.

President Barack Obama announced that the U.S. would move much faster in cutting its levels of pollution. Chinese President Xi Jinping agreed to cap China’s emissions in the future — a striking, unprecedented move by a nation that has been reluctant to box itself in on global warming.

“This is a major milestone in the U.S.-China relationship,” Obama said, with Xi at his side. “It shows what’s possible when we work together on an urgent global challenge.”

The unexpected breakthrough by the world’s two largest polluters, unveiled on the last day of Obama’s trip to China, reflected both nations’ desire to display a united front that could blunt arguments from developing countries that have balked at demands that they get serious about global warming. Yet it was unclear how feasible it would be for either country to meet their goals, and Obama’s pledge was sure to confront tough opposition from ascendant Republicans in Congress.

The U.S. set a new target to reduce its emissions of heat-trapping gases by 26 percent to 28 percent by 2025, compared with 2005 levels. That’s a sharp increase from earlier in Obama’s presidency, when he pledged to cut emissions by 17 percent by 2020.

China, whose emissions are still growing as it builds new coal plants, didn’t commit to cut emissions by a specific amount. Rather, Xi set a target for China’s emission to peak by 2030, or earlier if possible. He also pledged to increase the share of energy that China will derive from sources other than fossil fuels.

“This is, in my view, the most important bilateral climate announcement ever,” said David Sandalow, formerly a top environmental official at the White House and the Energy Department. “It sends the signal the two largest emitters in the world are working together to address this problem.”

Obama’s target, expected to serve as the U.S. contribution to a worldwide treaty to be finalized next year in Paris, came months before it had been expected. The U.S. has sought to show aggressive action on climate change in order to spur other nations to offer ambitious contributions, too.

For China, the commitment to cap emissions marked a turning point in China’s evolution on global warming and its responsibility to deal with the problem. China accounts for around 30 percent of global emissions, but has only gotten serious in recent years as the large-scale impact on health and quality of life in China has come into focus, exacerbated by smothering smog in Beijing’s skies.

Environmental advocates in the U.S. heralded the joint announcements as a game-changer that would undermine opposition. If China can get serious about emissions, they said, surely others can, too.

Al Gore, former vice president and a leading advocate for limiting climate change, called the announcement “a major step forward in the global effort to solve the climate crisis.” He said more will be required — “including a global agreement from all nations — but these actions demonstrate a serious commitment by the top two global polluters.”

Sen. Barbara Boxer, D-Calif., who chairs the Senate’s environmental panel, said: “Now there is no longer an excuse for Congress to block action.”

But Republicans signaled that they would seek to thwart Obama’s efforts once the GOP controls the Senate next year, pointing out that Obama was saddling future presidents with a tough-to-meet goal.

Read more: US, China Unveil Ambitious Climate Change Goals