US President Donald Trump jetted into Malaysia on Sunday to oversee the signing of a Thailand-Cambodia ceasefire pact, after deadly cross-border clashes between the countries flared this summer.

Here's what we know about their agreement to uphold a truce, Trump's role in sealing the deal and the conflict at the heart of the matter.

- What's in the deal? -

Thailand and Cambodia witnessed their worst cross-border clashes in decades in July, when a territory dispute boiled over into five days of open combat along their jungle-clad frontier.

At least 40 people were killed and 300,000 forced to flee their homes as soldiers traded gunfire, fighter jets launched sorties and rocket barrages rained down.

The joint declaration between the Thai and Cambodia prime ministers, witnessed by Trump an

See Full Page