Hungarian Prime Minister Viktor Orban said on Wednesday that his main foreign policy goal was maintaining good ties with Russia and Germany, adding that the United States was an important partner but not the central focus of foreign policy.

A maverick leader whose warm relations with Moscow have irked European and American partners at a time of escalating conflicts in Ukraine, Orban said he sought Hungarian interests first, even in alliances such as the European Union or NATO.

His Fidesz party, holding a commanding Parliament majority since 2010, supported sanctions against Russia but Orban has said the EU was “shooting itself in the foot” with them.

“If we want sustained security, calm and peace for Hungary, then we have to calculate with two powers that are present in Central Europe forcefully and on the long run, Germany and Russia,” he told TV news channel Hir TV.

“So we establish our foreign policy strategy in a way that we have friendly, balanced, correct, fair and mutually beneficial relations with these two countries.”

He said the United States - which has accused Hungarian public officials of corruption, sparking a dispute with Budapest - was less dependable as a foreign policy cornerstone.

“The Americans are important, but how strong this is, what weight they assign to the region, historically depends on their domestic politics,” Orban said.

“We cannot build a long-term foreign policy strategy on their presence. Therefore we must primarily come to terms with Germany and Russia.”

After a visit to Budapest by German Chancellor Angela Merkel on Monday, Russian President Vladimir Putin is expected in Hungary on Feb. 17. Orban said he expects to hammer out a new gas supply agreement with Putin.

Hungary obtains most of its gas from Russia.

“We would like to replace the current agreement that expires in 2015 with one that considers that we need gas but we do not know how ... prices will develop,” he said.

“We do not necessarily have to sign a long-term agreement, but surely a flexible agreement that may mean flexible time-wise. We cannot maintain [government mandated] low utility prices without an agreement signed with the Russians," said Orban.

He added that the government-mandated utility prices, a hallmark policy that helped the Fidesz party win re-election in 2014, were under a direct challenge from the EU as well, which wanted to limit state influence over energy prices.