China told the United States on Tuesday that it should play a constructive role in safeguarding peace in the disputed South China Sea, as U.S. Secretary of State John Kerry called for talks and a peaceful resolution.

China claims most of the South China Sea, through which $5 trillion in ship-borne trade passes every year. The Philippines, Vietnam, Malaysia, Taiwan and Brunei have overlapping claims, as well as close military ties with the United States.

China has been angered by what it views as provocative U.S. military patrols close to islands China controls in the South China Sea. The United States says the patrols are to protect freedom of navigation.