Three years ago, Rabbi Ari Edelkopf and his wife, Chana, worked around the clock for weeks to show off their community and city to the many foreigners in town for the Winter Olympics in Sochi.

The Chabad emissaries from the United States came to the city on Russia’s Black Sea coast in 2002. By the time the Olympics opened, they could offer three synagogues, five information centers and 24/7 kosher catering to thousands of people in the city, which has only 3,000 Jews.

The Edelkopfs were celebrated in the local media for these considerable efforts, which the Kremlin marketed as proof that Russia welcomes minorities — including by inviting a Russian chief rabbi to speak at the opening.

This month, the couple is in the news again but for a different reason: They and their seven children have been ordered to leave Russia after authorities flagged Ari Edelkopf as a threat to national security.

Occurring amid a broader crackdown on foreign and human rights groups under President Vladimir Putin, the de facto deportation order against the Edelkopfs is to many Russian Jews a sign that despite the Kremlin’s generally favorable attitude to their community, they are not immune to the effects of living in an increasingly authoritarian state. And it is doubly alarming in a country where many Jews have bitter memories of how the communists repressed religious and community life.

The Edelkopfs’ deportation order drew an unusually harsh reaction from the Federation of Jewish Communities of Russia, a Chabad-affiliated group that has maintained friendly and mutually beneficial ties with Putin.

The order, which included no explanation or concrete accusation, “raises serious concerns for the future of the Jewish communities in the country,” Rabbi Boruch Gorin, a federation spokesman, told the L’chaim Jewish weekly last week. Gorin is a senior aide to Berel Lazar, the Chabad chief rabbi who spoke at the Sochi opening ceremony.

Gorin also called the order “an attempt to establish control” on religious communities in Russia, including the Jewish one, which he said is serviced by some 70 Chabad rabbis, half of whom are foreign.

Many Sochi Jews consider Edelkopf a popular and beloved spiritual leader with an impeccable record and a close relationship with Lazar. They reacted with dismay and outrage to the deportation order.

“This is absurd,” Rosa Khalilov wrote in one of the hundreds of Facebook messages posted to Edelkopf’s profile, in which he offered updates from his failed legal fight to stay in Russia. “Deportation without proof and thus without proper defense for the accused. I am utterly disappointed.”

We can remember very well the times when Jews were last accused of endangering state security.

— Rabbi Boruch Gorin

Since the fall of communism in 1991, the Federation of Jewish Communities of Russia — essentially Chabad’s Russia branch, and by far the country’s largest Jewish group —only on a very rare occasion had publicly questioned the viability of Jewish life in the country or the authorities’ tolerance of religious freedoms.

The strong reactions to the Edelkopf edict seem to be less connected to the actual expulsion — at least seven rabbis have been sent packing over the past decade over visa and residence issues — than to the assertion that Edelkopf endangers Russia, a claim the rabbi denies.

“This serious allegation is a negative precedent that we had never seen directed at a rabbi before in Russia, and it is a very, very big problem for us,” aid Gorin. “What are they saying? Is he a spy? We can remember very well the times when Jews were last accused of endangering state security,” he added in reference to anti-Semitic persecution under communism.

Behind the expulsion of Edelkopf and the other rabbis, Gorin added, is an attempt by the state to limit the number of foreign clerics living in Russia, an effort that has led to expulsions not only of rabbis but also of Muslim and Protestant clergy.

Alexander Boroda, the president of Gorin’s federation, told Interfax that he was “dismayed” by the expulsion and suggested it was the work of an overzealous official eager “to check off the box” after being ordered to curb immigration.

Boroda also told Interfax that the deportation was not anti-Semitic. He recalled how Putin’s government has facilitated a Jewish revival in Russia, including by returning dozens of buildings, educating to tolerance, adding Jewish holidays to the national calendar, and offering subsidies to Jewish groups.

The government has also tolerated criticism by the Chabad-led community. Under Lazar and Boroda, the Federation has largely ignored xenophobia against non-Jews but consistently condemned any expression of anti-Semitism, including from within Putin’s party and government.

Still, the Edelkopf deportation is part of a string of recent incidents in which Jews have suffered the effects of growing authoritarianism in Russia, a country where opposition figures are routinely prosecuted and convicted.

Under legislation from 2012, a Jewish charitable group from Ryazan near Moscow was flagged in 2015 by the justice ministry as a “foreign agent” over its funding from the American Jewish Joint Distribution Committee and its reproduction in a newsletter of political op-eds that appeared in L’chaim.

Last year, a court in Sverdlovsk convicted a teacher, Semen Tykman, of inciting hatred among pupils at his Chabad school against Germans and propagating the idea of Jewish superiority. Authorities raided his school and another one in 2015, confiscating textbooks, which some Russian Jews suggested was to create a semblance of equivalence with Russia’s crackdown on radical Islam.

While the incidents differ in their local contexts in the multiethnic behemoth that is Russia, seen together they demonstrate that the Jewish minority not only thrived under Putin but is feeling the “collateral damage as the government drastically tightens its grip on all areas of life,” according to Roman Bronfman, a former Israeli lawmaker from Ukraine and a staunch critic of Putin.

Natan Sharansky, the chairman of the Jewish Agency, recently named the anti-democratic measures of Putin’s government — along with the halving of the Russian ruble against the dollar amid sanctions and dropping oil prices — as a major catalyst for an increase in immigration to Israel by Russian Jews.

Last year, Russia was Israel’s largest provider of immigrants with some 7,000 newcomers to the Jewish state.