RIYADH, Saudi Arabia (AFP) — US President Donald Trump threw his weight behind efforts to isolate Qatar on Tuesday, backing Saudi Arabia and its allies after they cut ties with Doha over claims it supports extremism.

In a surprise move against a key US ally, Trump suggested Qatar — home to the largest American airbase in the Middle East — was funding extremism as he tacitly backed the diplomatic blockade of the emirate.

“So good to see the Saudi Arabia visit with the King and 50 countries already paying off,” Trump said in a morning tweet, in reference to his trip to Riyadh last month.

“They said they would take a hard line on funding… extremism, and all reference was pointing to Qatar. Perhaps this will be the beginning of the end to the horror of terrorism!”

Trump’s broadside came as Kuwait’s ruler headed to Saudi Arabia in a bid to resolve the feud, the worst diplomatic crisis to hit the Arab world in years.

Saudi Arabia and allies including Egypt, the United Arab Emirates and Bahrain announced Monday they were severing diplomatic relations and closing air, sea and land links with Qatar.

They accused the tiny Gulf state of harboring extremist groups and suggested Qatari support for the agenda of Saudi Arabia’s regional arch-rival Iran.

Energy-rich Qatar has long had strained ties with its neighbors but the move by Riyadh and its supporters shocked observers, raising fears the crisis could destabilize an already volatile region.

The dispute comes less than a month after Trump visited Saudi Arabia and called for Muslim nations to unite against extremism.

This file photo taken on May 21, 2017 shows US President Donald Trump (R) shaking hands with Qatar's Emir Sheikh Tamim Bin Hamad Al-Thani, during a bilateral meeting at a hotel in the Saudi capital Riyadh. (AFP Photo/Mandel Ngan)

This file photo taken on May 21, 2017 shows US President Donald Trump (R) shaking hands with Qatar’s Emir Sheikh Tamim Bin Hamad Al-Thani, during a bilateral meeting at a hotel in the Saudi capital Riyadh. (AFP Photo/Mandel Ngan)

The rift was already having tangible effects, with dozens of flights cancelled, Qatari planes barred from regional airspace, and panic buying in Doha amid fears of food shortages.

Kuwait did not join fellow Gulf countries in taking measures against Doha, and its Emir Sheikh Sabah al-Ahmad Al-Sabah departed Tuesday for Saudi Arabia for talks to resolve the crisis.

In a call with Sheikh Sabah on Monday, Qatari leader Sheikh Tamim bin Hamad Al-Thani had agreed to put off a speech to the nation in order to give mediation a chance.

Qatar ready for talks

Several Kuwaiti lawmakers voiced support for the emir’s efforts.

“We pray to God to help him succeed in achieving Gulf unity,” veteran MP Ali al-Deqbasi said during a parliamentary session.

Qatari Foreign Minister Sheikh Mohammed bin Abdulrahman Al-Thani signaled that Qatar was open to talks, calling for “a dialogue of openness and honesty” to resolve the crisis.

“We believe any issue could be solved through discussion and mutual respect,” he told Doha-based news channel Al-Jazeera.

UAE state minister for foreign affairs Anwar Gargash said Tuesday on Twitter that a “guaranteed roadmap” was needed before it would consider mending ties.

This photo taken on June 15, 2015, shows a Qatar Airways A350 900 on the tarmac during the International Paris Airshow at Le Bourget on June 15, 2015. (AFP Photo/Eric Piermont)

This photo taken on June 15, 2015, shows a Qatar Airways A350 900 on the tarmac during the International Paris Airshow at Le Bourget on June 15, 2015. (AFP Photo/Eric Piermont)

As well as cutting diplomatic relations and ordering Qatari citizens to leave their countries within 14 days, the Gulf states and Egypt banned all flights to and from Qatar.

UAE carriers Emirates, Etihad, flydubai and Air Arabia, as well as Saudi Airlines had all announced the suspension of flights to and from Qatar as of Tuesday morning.

A total of 27 flights from Dubai to Doha had been scheduled for Tuesday and the Dubai Airports website showed all flights to Doha had been cancelled.

‘Eerie’ airport quiet

Qatar Airways, for its part, said it had suspended all flights to Saudi Arabia, the UAE, Bahrain and Egypt “until further notice.”

Countries including Saudi Arabia also banned Qatari planes from their airspace and Riyadh on Tuesday revoked Qatar Airways’ operating licence in the kingdom.

Doha’s Hamad International Airport was virtually deserted early on Tuesday. More than 30 flights were shown canceled on airport television screens.

“This is the emptiest airport I have been in so far,” said Katie, transiting in Qatar en route to Thailand. “It’s exceptionally quiet, almost eerie.”

Passengers of cancelled flights wait in Hamad International Airport (HIA) in Doha, Qatar, Monday, June 5, 2017. (AP Photo/Hadi Mizban)

Passengers of cancelled flights wait in Hamad International Airport (HIA) in Doha, Qatar, Monday, June 5, 2017. (AP Photo/Hadi Mizban)

The crisis will have wide-ranging consequences, not just for Qatar and its citizens but across the Middle East and for Western interests.

Qatar is home to the biggest US airbase in the Middle East, Al-Udeid, where some 10,000 military personnel are stationed. As the forward headquarters of US Central Command, it is seen as crucial in the US-led campaign against the Islamic State terror group.

Qatar is also a major regional diplomatic player and international investor and is set to host the World Cup, football’s biggest tournament, in 2022.

But Qatar has also long been accused by its Gulf neighbors and Egypt of supporting extremist groups.

In announcing it was cutting ties, Riyadh accused Doha of harboring “terrorist and sectarian groups that aim to destabilize the region including the Muslim Brotherhood, Daesh (IS) and Al-Qaeda.”

Riyadh also accused Doha of supporting Iran-backed “terrorist activities” in eastern Saudi Arabia and in Shiite-majority Bahrain.

“The measures are unjustified and are based on false and baseless claims,” Qatar said in response to Monday’s announcement.

Qatar independent streak

Gulf countries previously recalled their ambassadors from Qatar in 2014, ostensibly over its support for the Brotherhood, but Monday’s moves go much further.

Saudi Arabia and its Gulf allies may have felt emboldened by Trump’s visit, which saw the new president clearly align US interests with Riyadh and lash out at Iran.

Qatar has an independent streak that has often angered its neighbors.

Palestinian Authority President Mahmoud Abbas (left) with Emir of Qatar Sheikh Tamim Bin Hamad al-Thani (center) and Hamas leader Khaled Mashaal (right) in Doha, Qatar, on August 21, 2014 (AFP/PPO/Thaer Ghanem)

Palestinian Authority President Mahmoud Abbas (left) with Emir of Qatar Sheikh Tamim Bin Hamad al-Thani (center) and Hamas leader Khaled Mashaal (right) in Doha, Qatar, on August 21, 2014 (AFP/PPO/Thaer Ghanem)

The emirate has directly and indirectly supported Islamist groups across the Arab world, including the Muslim Brotherhood.

Qatar has also been criticised for supporting Islamist rebels in Syria, and in 2013, the Afghan Taliban opened a Doha office.

Fellow Gulf states are also reported to have been angered by a huge ransom paid by Doha earlier this year to secure the release of a hunting party, which included members of the Qatari royal family, kidnapped in southern Iraq.

The ransom, which Iraqi officials said was in the “hundreds of millions of dollars,” was believed to have been paid to militias with close ties to Tehran.