Hungary asked the United States to exempt it from new sanctions on buying Russian energy.

Marton Hajdu, head of the foreign affairs committee of Hungary’s parliament from the ruling party, wrote on Facebook on Monday after meeting with Republican and Democratic representatives in the Congress: “I asked them to support our exemption in this transition period from U.S. sanctions against the purchase of Russian energy.”

Donald Trump, the U.S. president, signed a law on Friday that allows him to impose tariffs on buyers of Russian oil.

Peter Magyar’s government, Hungary’s prime minister, has distanced itself from the Russia-leaning policy of Viktor Orbán and has promised to end dependence on Russian gas, but the country remains heavily dependent on Russian energy.

Before the election in Farvardin, Mr. Trump had supported Orbán “fully.” Orbán lost in that election after 16 years in power, by a wide margin. In Aban 1404, after meeting with Mr. Trump, he had said that Hungary had obtained “a general and unlimited exemption” from U.S. sanctions that remains valid as long as both leaders are in power.