A convoy of diplomatic vehicles leave a Russian owned compound, after President Barack Obama abruptly ordered the compound closed on Thursday, in Centreville, Maryland, U.S., December 30, 2016. REUTERS/Yeganeh Torbati

MOSCOW (Reuters) - Moscow is preparing retaliatory measures to Washington’s decision to seize two Russian diplomatic compounds in the United States in 2016, Russia’s foreign ministry spokeswoman said on Wednesday.

In December, U.S. seized two Russian diplomatic compounds as then President Barack Obama ordered the expulsion of 35 Russians over what he said was their involvement in hacking to interfere in the U.S. presidential election campaign.

Moscow, which denies such allegations, did not retaliate immediately, saying it would wait to see if relations improved under President Donald Trump.

“Retaliatory measures are being prepared. As you understand, such a decision on the issue won’t be made only by the foreign ministry,” ministry spokeswoman Maria Zakharova said.

Speaking on state-run Rossiya 1 channel, Zakharova said Washington realizes that Moscow would retaliate.

Russian Kommersant newspaper reported in June that Russia may seize U.S. diplomatic property in Moscow and complicate life for an Anglo-American school unless Washington hands back the two diplomatic compounds in the United States before July.