President Barack Obama on Thursday unleashed a barrage of retaliatory measures against Moscow for meddling in the US election, imposing sanctions on two intelligence agencies, expelling 35 agents and shuttering two Russian compounds inside the United States.

Making good on a promise to punish Vladimir Putin’s government for allegedly trying to tilt the 2016 election in Donald Trump’s favor, Obama unveiled a broad range of steps that will inflame tensions with both Moscow and the president-elect.

US intelligence had concluded that a hack-and-release of Democratic Party and Hillary Clinton staff emails was ordered by the Kremlin and was designed to put the Republican real estate mogul in the Oval Office.

“I have ordered a number of actions in response to the Russian government’s aggressive harassment of US officials and cyber operations aimed at the US election,” Obama said in a statement.

Trump said that while he believes the US should “move on to bigger and better things,” he would meet with intelligence leaders next week for a briefing on the situation.

In response to the hacks — dubbed “Grizzly Steppe” by US officials — Obama announced sanctions against Russia’s military intelligence agency, known as GRU, and the FSB — the KGB’s successor.

The 35 Russian intelligence operatives — based at the Russian embassy in Washington and the consulate in San Francisco — have been declared “persona non grata” and ordered to leave the country within 72 hours.

US officials also moved to close two Russian compounds in New York and Maryland.

The latter facility, a summer house a short drive from the US capital, was once featured in a Washington lifestyle magazine and was described as a stately home surrounded by lush gardens on the banks of the Chester River, with an “impressive collection of German and Hungarian porcelains.”

The US government said it is now used “for intelligence-related purposes.”