U.S. President Donald Trump awaits the arrival of South Korean President Moon Jae-in at the White House in Washington, U.S., June 30, 2017. REUTERS/Jim Bourg

WASHINGTON (Reuters) - U.S. president Donald Trump spoke with Turkish President Tayyip Erdogan on Friday to discuss the dispute between Qatar and Gulf and Arab powers who severed diplomatic and travel links with Qatar.

Trump and Erdogan discussed ways to resolve the dispute “while ensuring that all countries work together to stop terrorist funding and to combat extremist ideology”, the White House said in a statement.

Turkey has backed Doha in its rift with four Arab states, which are boycotting the country over alleged support for terrorism, in what has become the worst Gulf Arab crisis in years. Doha denies the charges.