US President Barack Obama called for an end to fighting between Sudan and South Sudan and negotiations between the leaders of the two countries to settle their conflict.

“We know what needs to happen — the government of Sudan must stop its military actions, including aerial bombardments,” Obama said in a videotaped message to the people of the two countries.

Urged the government of Sudan must stop its military actions

“Likewise, the government of South Sudan must end its support for armed groups inside Sudan and it must cease its military actions across the border,” the president added in the address released by the State Department.

“The presidents of Sudan and South Sudan must have the courage to return to the table and negotiate and resolve these issues peacefully,” Obama pointed out.

The appeal came after Sudan said on Friday its forces had chased South Sudanese troops out of its main oilfield as the South ordered an end to its 10-day occupation, a move which had sparked fears of a wider war.

Border clashes between Sudan and South Sudan escalated last week with waves of air strikes hitting the South, and Juba seizing the Heglig oil hub on April 10.

Since the invasion, production at Heglig has been shut and facilities there are leaking. Each side accused the other of damaging the oil infrastructure.

The Heglig violence was the worst since South Sudan won independence in July after a 1983-2005 civil war in which some two million people died.

Tensions have gradually mounted over the disputed border and other unresolved issues.

On Thursday, United Nations chief Ban Ki-moon condemned the South’s taking of Heglig as an “illegal act.”

But Juba is arguing that Heglig is its territory and has asked for international arbitration.

Obama warned that progress made by the two countries toward peace and prosperity was now “at risk of unraveling” and urged the two nations to step back from the brink.

“You still have a chance to avoid being dragged back into war, which only leads to one place — more suffering; more refugees; more death; more lost dreams for you and your children,” said the US president.

Obama insisted that “all those who are fighting — including in Southern Kordofan and Blue Nile — must recognize that there is no military solution.”

He said that those who choose to work toward peace will not be alone.

“You will have a strong and steady partner in the United States of America,” the president promised.

The message was broadcast both in English and Arabic.

South Sudan broke away from the north following a referendum under a 2005 peace deal that ended a two-decade civil war in which more than two million people died.