President Barack Obama will visit Saudi Arabia Wednesday trying to salvage what he can from a historically stable partnership that has frayed over differing priorities related to major issues like the Syrian civil war and Iranian influence.

As the Obama administration has focused its policies on defeating the Islamic State in Syria over ousting its Iranian-supported President Bashar-al Assad — Saudi Arabia wants both of those objectives accomplished —  and engaging Iran with a nuclear deal, Saudi Arabia has begun to formulate its own foreign policy, to what analysts say has been poor results, especially with its intervention in Yemen.

The sense of separation was intensified when Obama, in an interview with The Atlantic published in March, described Saudi Arabia, and other allies, as a “free rider” on American foreign policy, and called for the Saudis to “share the neighborhood” with Iran.

And in another pressing issue, Congress is considering a bill that would allow families of 9/11 victims to sue the Saudi government for any role it may have allegedly had in the terrorist attacks.

All of that leaves the U.S.-Saudi Arabia relationship at a defining moment, experts tell The Daily Signal, at a time when the Middle East is in turmoil.

“I think the real issue is the Saudis feel Obama has developed a tilt towards Iran in his zeal to bring Iran in from the cold and that the American president is walking away from the U.S.’ traditional Arab allies in the region,” said David Ottaway, a Middle East fellow with the Wilson Center.

“From the Saudi viewpoint, Obama has prompted a pivot to Asia, and the U.S. is not as dependent on Arab oil as it once was,” Ottaway said. “So there’s plenty of evidence the U.S. under Obama is trying to lessen its involvement in the Arab world and in conflicts where its Arab allies are perceived to have different priorities than with the U.S.”

Despite the perception that Obama has shifted his foreign policy focus to Shia-led Iran over the Sunni-led Saudi Arabia, the administration has said its deal with Iran was only focused on containing its nuclear program, and that the two countries would not become partners on other issues unless Tehran curbed its support for terrorism and ballistic missile tests.

Matthew McInnis, a former analyst at the Department of Defense and current fellow at the American Enterprise Institute, believes this perceived change in calculus has been overblown.

“I don’t want to overplay that we have all of a sudden switched to Iran and we are against the Saudis,” McInnis said. “I think the Iranians still believe the U.S.’ most fundamental alliances remain with Saudi Arabia and other Gulf states. Even Obama still agrees that most of what Iran does in its foreign policy is still problematic to the region, it’s still destabilizing, but I think he’s expecting the Saudis to develop their own capability to respond to how Iran projects power in the region.”

That disconnection, the analysts say, likely prompted the normally low-key Saudi Arabia, under a new monarch King Salman, 80, and his son, the 30-year-old Defense Minister Mohammed bin Salman, to take more aggressive actions lately.

In January, it executed 47 men on terrorism charges, including a Shiite cleric, prompting Iranians to attack the Saudi Embassy in Tehran.

Saudi Arabia has also carried out a bombing campaign in Yemen for over a year to try to defeat the Houthi Shiite militant group, but the effort has led to the deaths of thousands of civilians and the growth of al-Qaeda in the country.

“I think the Saudis realize they are in a difficult situation and that’s why you are seeing an increasingly independent Saudi foreign policy,” McInnis said. “The problem is Obama is trying to take the training wheels off [Saudi Arabia] too quickly, which has created not the best judgement on the part of the Saudis. I think the president is right to try and shake the Saudis out of their strategic stupor and overreliance on the U.S., but when we have a system that’s developed for decades and it’s clear whose side we are on, to all of a sudden begin to change that without providing a long-term vision is creating an acceleration of a Saudi-Iran proxy war.”

Jim Phillips, a Middle East expert at The Heritage Foundation, says he expects the U.S. to maintain cooperation with Saudi Arabia on issues like security and counterterrorism.

“Saudi Arabia is [still] a valuable ally for containing and rolling back Iran, defeating ISIS and al-Qaeda, and keeping oil prices low,” Phillips said. “If Saudi Arabia breaks with the United States and pursues its own goals unilaterally, the Middle East will be a much more unpredictable, dangerous and unstable place.”

The best way to manage a complex relationship, McInnis and Phillips say, is for the U.S. to continue to be frank with Saudi Arabia about the two countries’ differences, while hoping they can unite around common goals, despite competing priorities.

“I think fundamentally we can admit our differences we have with the Saudis, and recognize we won’t always be aligned,” McInnis said. “The Saudis support for the promulgation of the Wahhabism ideology [an ultraconservative branch of Sunni Islam] will always be a problem with them, and we don’t like how they treat women and restrict freedom of the press. But if we hope to someday calm down the region, working with the Saudis is better than working against the Saudis.”