Alexandria Ocasio-Cortez got into the groove of things Friday and showed off her best dance moves in response to a years-old video that a critic released in an attempt to embarrass her.

The newly sworn-in congresswoman from New York tweeted a cutesy clip of her having fun over the dance drama — which actually wound up backfiring and made her an internet sensation.

“I hear the GOP thinks women dancing are scandalous. Wait till they find out Congresswomen dance too!” the 29-year-old wrote with the 11-second video showing her twirling and moonwalking to Edwin Starr’s “War (What Is It Good for).”

She added, “Have a great weekend everyone :)”

On Thursday, a clip showing a young Ocasio-Cortez made the rounds on Twitter after an anonymous user posted it, calling it a “High School video” of “America’s favorite commie know-it-all acting like the clueless nitwit she is.”

The four-minute video shows the future pol wearing a Boston University T-shirt and playfully imitating Ally Sheedy’s iconic scene from the 1985 cult classic “The Breakfast Club.”

The video, titled “Boston University Brat Pack Mashup” and uploaded in 2010, features other young adults dancing on a rooftop to French band Phoenix’s hit song “Lisztomania.”

Twitter users shot back against the smear attempt.

“Well, @AOC is officially done. She’ll never recover from the world seeing her… (watches video) …dancing adorably and having fun with her friends in high school?” comedian Patton Oswald quipped.

Ocasio-Cortez made history as the youngest woman ever elected to Congress with her stunning upset in the Democratic primary election over longtime incumbent Joe Crowley.