BEIJING (AP) — The U.S. and China have agreed to rid North Korea of nuclear weapons in a test of whether the world powers can shelve years of rivalry and discord, and unite in fostering global stability.

Kerry and China's foreign policy chief, State Councilor Yang Jiechi (yahng jay-uh-CHUR'), say the two nations would work together to create a nuclear-free Korean peninsula, effectively forcing North Korea to give up its arsenal.

Yang describes China's stance on North Korea as "clear cut" and is calling for the resumption of the six-nation talks aimed at ending the nuclear threat. He says "the issue should be handled and resolved peacefully through dialogue."

Beyond this latest attempt to restrain North Korea, the burgeoning nuclear crisis has so frustrated the U.S. and China that they are forming a new and tentative bond with the potential to carry over into areas that have vexed them for decades.

Secretary of State John Kerry on Saturday described a "synergy" between the two countries to achieve worldwide security and economic stability.

Kerry, who is visiting Beijing, says "We have a stake in China's success. And frankly, China has a stake in the success of the United States."