PHNOM PENH, Cambodia (AP) — Cambodia and Thailand have agreed in principle to withdraw troops from a border area where a territorial dispute triggered deadly clashes.

Thailand Cambodia Preah Vihear

A Cambodian police officer, right, stands near the 11th century Hindu Preah Vihear temple, near the disputed border of Cambodia-Thailand. Pic: AP.

The agreement was announced Wednesday after Thai Defense Minister Yuthasak Sasiprapha met with his Cambodian counterpart, Tea Banh. It is meant to end combat over a small patch of land both countries claim around the ancient temple of Preah Vihear. Eighteen people were killed in the last round of fighting in April.

The new agreement calls for both sides to withdraw troops completely and simultaneously from a demilitarized zone demarcated by the Netherlands-based International Court of Justice, but sets no date. The court in July ordered troops from both countries to withdraw after Cambodia sought its help.