Chile canceled the APEC summit that was scheduled to be held in Santiago next month after a wave of protests and riots stretched security forces to the limit.

Neither will the government host the United Nations climate change conference, the COP25, set for December, President Sebastian Pinera said.

“We understand perfectly the importance of APEC and COP for Chile and the world, but we have based our decision on common sense,” Pinera said from the presidential palace. “A president needs to put its people above everything else.”

U.S. President Donald Trump had said he would sign a preliminary trade accord with China’s Xi Jinping at the Nov. 16-17 summit. Chile’s decision to cancel the meeting highlights the depth of trouble facing the Latin American nation that has seen the worst unrest in a generation. Until just two days ago, the government had insisted it would go ahead with the summit.

Chile’s peso extended losses after the announcement, dropping 1.6 per cent to 738.75 against the dollar on the day. The currency is now at its lowest since 2003.

Pinera said the government had spoken to other presidents to warn them of the cancellation.