U.S. President Donald Trump will attend the ceremonial signing of a peace agreement between Thailand and Cambodia at an upcoming summit of Southeast Asian nations, the foreign minister of host Malaysia said Tuesday.

Tensions between Thailand and Cambodia erupted in July into the deadliest military clashes in decades, killing more than 40 people and forcing around 300,000 to flee their homes.

The two sides agreed to a ceasefire — brokered in part by Trump — after five days of fighting, and have since repeatedly traded accusations of truce violations.