Saudi Arabiainfo-icon's King Salman, on a landmark visit to Russiainfo-icon, and President Vladimir Putin on Thursday signed a slew of arms and energy deals as the key USinfo-icon ally seeks to deepen cooperation with Moscowinfo-icon.

The leaders of the worldinfo-icon's largest energy exporters discussed an extension of an OPECinfo-icon agreement to cap oilinfo-icon output and oversaw the signing of deals which officials said were worth billions of dollars.

Saudi Arabia signed preliminary agreements to buy Russia's S-400 air defence systems and anti-tank guided missileinfo-icon systems and receive "cutting edge technologies," said the Sunni state's military firm, Saudi Arabian Military Industries.

The two countries also signed a series of multi-billion dollar investment deals including one to create a $1 billion fund to pursue energy projects.

"This is the first visit by a Saudi Arabian monarch in the historyinfo-icon of our relations and that in itself is a landmark event," Putin said as he welcomed 81-year-old King Salman to Moscow in an ornate gilded Kremlin hall.

"I'm sure your visit will boost the ties between our countries," Putin added.

"We aim to strengthen our relations in the interests of peace and security, in the interests of developing the world economyinfo-icon," the Saudi king responded.

Saudi Foreign Minister Adel al-Jubeir told journalists that "relations between Russia and Saudi Arabia have reached a historic moment." "Today we alone as the Russian Direct Investment Fund announced deals worth $2.1 billion," said Kirill Dmitriyev, the head of the fund set up to attract investment.

Foreign Minister Sergei Lavrov said agreements came in the fields of "energy -- not only traditional but also nuclear power -- and also in cooperation in spaceinfo-icon exploration (and) agroindustry and infrastructure projects."

Saudi Arabia is the country that buys the most US arms and Washington and Riyadh in May announced a $110 billion deal to sell weaponsinfo-icon to Saudi Arabia.

But Saudi, a long-standing ally of Washington, is keen to boost ties with Moscow as a major player in the Syrian conflictinfo-icon and a fellow oil producer with shared interests in supporting energy prices.

"We are certain that further strengthening of relations will have a positive effect on strengthening stability and security in the world," his Saudi counterpart Jubeir stressed.

Fyodor Lukyanov, the Kremlin-connected chairman of the Council on Foreign and Defence Policy, said Riyadh saw closer ties with Moscow as expedient for the moment, and was "diversifying risks" by buying arms from both Moscow and the US.

"Saudi Arabia has recognised Russia as a significant player in a region that is important to it," he said.

"They respect Russia more now. But you shouldn't think it's forever."