Social media users and public figures slammed environmental lawyer and anti-vaccine advocate Robert F. Kennedy Jr. for comparing current vaccine mandates to the Holocaust.

Kennedy said Sunday it was easier for Anne Frank to hide from Nazis than it is for Americans to hide from getting a vaccine.

Speaking at an anti-vax rally, “Defeat the Mandate: An American Homecoming,” at the Lincoln Memorial, Kennedy made controversial comments about vaccines and other topics.

"Even in Hitler Germany you could cross the Alps into Switzerland. You could hide in an attic like Anne Frank did," Kennedy said.

"I visited, in 1962, East Germany with my father and met people who had climbed the wall and escaped, so it was possible. Many died, true, but it was possible. Today the mechanisms are being put in place to make it so that none of us can run and none of us can hide,” he said.

Kennedy made other questionable comments, including a conspiracy theory about the 5G tower launch, and the rise of digital currency.

“They’re putting in 5G to harvest our data and control our behavior. Digital currency that will allow them to punish us from a distance and cut off our food supply,” Kennedy said.

The Auschwitz Memorial slammed Kennedy's comments.

“Exploiting of the tragedy of people who suffered, were humiliated, tortured & murdered by the totalitarian regime of Nazi Germany – including children like Anne Frank – in a debate about vaccines & limitations during global pandemic is a sad symptom of moral & intellectual decay,” the museum said in the tweet on Sunday.

Kennedy was also slammed by "The View" co-host Whoopi Goldberg.

“How can anyone be this misinformed? Not just about the vaccines and the mandate, but about history? How is it possible?” said Goldberg on Monday.