Are Iran and Israel Trading Places?

STANFORD, Calif. — Although the Israeli and Iranian governments have been virtually at war with each other for decades, the two countries have much in common.

Both are home to some of the oldest civilizations on earth, and both are primarily non-Arab states in a mostly Arab region. In the 1950s, David Ben-Gurion’s Israel and Shah Mohammed Reza Pahlavi’s Iran were bastions of secular nationalism; the shah pushed authoritarian modernization, while Ben-Gurion advanced a form of nonreligious Zionism. Only after the 1979 Islamic revolution in Iran did radical Islam all but eclipse this secular brand of politics. It held on for much longer in Israel but is now under threat.

Both Iran and Israel are now entering potentially challenging new stages in their relations with the outside world, and particularly with the United States. Over the last seven years, United Nations Security Council resolutions have imposed sanctions on Iran with the aim of halting its nuclear program. For years, Iran’s former president Mahmoud Ahmadinejad railed against the “Great Satan.” But even if Iran’s supreme leader, Ayatollah Ali Khamenei, is still opposed to reforms, it appears that some officials inside Iran have finally realized that continued intransigence and bellicosity will beget only more sanctions and catastrophic economic consequences.

As the winds of change blow across Iran, secular democrats in Israel have been losing ground to religious and right-wing extremists who feel comfortable openly attacking the United States, Israel’s strongest ally. In recent months, Israel’s defense minister, Moshe Yaalon, called Secretary of State John Kerry “obsessive and messianic,” while Naftali Bennett, Israel’s economy minister, labeled Mr. Kerry a “mouthpiece” for anti-Semitic elements attempting to boycott Israel.

Israel’s secular democrats are growing increasingly worried that Israel’s future may bear an uncomfortable resemblance to Iran’s recent past.

For more than three decades, Iran’s oil wealth has allowed its religious leaders to stay in power. But sanctions have taken a serious economic toll, with devastating effects on the Iranian people. The public, tired of Mr. Ahmadinejad’s bombastic and costly rhetoric, has replaced him with Hassan Rouhani, a pragmatist who has promised to fix the economy and restore relations with the West.

But Mr. Rouhani’s rise is in reality the consequence of a critical cultural and demographic shift in Iran — away from theocracy and confrontation, and toward moderation and pragmatism. Recent tensions between America and Russia have emboldened some of Iran’s radicals, but the government on the whole seems still intent on continuing the nuclear negotiations with the West.

Iran is a land of many paradoxes. The ruling elite is disproportionately made up of aged clerics — all men — while 64 percent of the country’s science and engineering degrees are held by women. In spite of the government’s concentrated efforts to create what some have called gender apartheid in Iran, more and more women are asserting themselves in fields from cinema to publishing to entrepreneurship.

Many prominent intellectuals and artists who three decades ago advocated some form of religious government in Iran are today arguing for popular sovereignty and openly challenging the antiquated arguments of regime stalwarts who claim that concepts of human rights and religious tolerance are Western concoctions and inimical to Islam. More than 60 percent of Iranians are under age 30, and they overwhelmingly believe in individual liberty. It’s no wonder that last month Ayatollah Khamenei told the clerical leadership that what worried him most was a non-Islamic “cultural invasion” of the country.

As moderate Iranians and some of the country’s leaders cautiously shift toward pragmatism and the West, it seems that many Israelis are moving away from these attitudes. In its 66 years, Israel has seen its share of ideological shifts from dovish to hawkish. These were natural fluctuations driven mainly by the country’s security situation and prospects for peace.

But the current shift is being accelerated by religion and demography, and is therefore qualitatively different. While the Orthodox Jewish parties are currently not part of the government, together with Mr. Bennett’s Jewish Home, a right-wing religious party, they hold about 25 percent of seats in the Knesset. The Orthodox parties aspire to transform Israel into a theocracy. And with an average birthrate of 6.5 children per family among Orthodox Jews (compared with 2.6 for the rest of the Jewish population), their dream might not be too far away.

By contrast, Iran has a falling birthrate — a clear indication of growing secularism, and the sort of thing that keeps Ayatollah Khamenei awake at night.

The long-term power of these demographic trends will, in our view, override Iran’s current theocratic intransigence and might eclipse any fleeting victories for liberalism in Israel.

Israel’s shift toward orthodoxy is not merely a religious one. Since the vast majority of Orthodox Jews are also against any agreement with the Palestinians, with each passing day, the chances of reaching a peace deal diminish. Nor is time on the side of those who want to keep seeing a democratic Israel.

If Israel continues the expansion of settlements, and peace talks serve no purpose but the extension of the status quo, the real existential threat to Israel will not be Iran’s nuclear program but rather a surging tide of economic sanctions.

What began a few years ago with individual efforts to get supermarket shoppers in Western countries to boycott Israeli oranges and hummus has turned into an orchestrated international campaign, calling for boycotts, divestment and sanctions against Israeli companies and institutions.

From academic boycotts to calls for divestment on American university campuses to the unwillingness of more and more European financial institutions to invest in or partner with Israeli companies and banks that operate in the West Bank, the “B.D.S.” movement is gaining momentum. Prime Minister Benjamin Netanyahu has recently called B.D.S. advocates “classical anti-Semites in modern garb.”

In the past, Israel could rely on Western nations and especially the United States to halt such initiatives, but as the fabric of Israel’s population changes, and Jewish populations in the West become less religious and less uncritically pro-Israel, the reflex to stand by the Jewish state, regardless of its policies, is weakening.

Moreover, as Western countries shift toward greater respect for human rights, the occupation is perceived as a violation of Western liberal norms. A new generation of American Jews sees a fundamental tension between their own liberal values and many Israeli policies.

This, coupled with the passing of the older generation and a high rate of interfaith marriage among American Jews, means the pro-Israel lobby will no longer be as large or as united as it used to be. While American presidents from Lyndon B. Johnson to Barack Obama have declared that the United States’ commitment to Israel flows from strategic interests and shared values, in a generation or two, interests may be all that’s left.

An opposite shift is occurring in Iran’s diaspora. An estimated five to seven million Iranians live in exile. Their economic, scientific, scholarly and cultural achievements are now well known in the United States thanks to people like the eBay founder Pierre Omidyar. They are increasingly establishing themselves as a powerful force advocating a more democratic Iran and better relations with the United States. Just as a united Jewish diaspora once helped the new state of Israel join the ranks of prosperous, industrialized states, Iran’s diaspora could one day play a similar role for a post-theocratic Iran.

One of Israel’s most popular singers, the Iranian-born Rita Jahanforuz, laments on her recent album, “In this world, I am alone and abandoned, like wild grass in the middle of the desert.”

If Iran’s moderates fail to push the country toward reform, and if secular Israelis can’t halt the country’s drift from democracy to theocracy, both Iranians and Israelis will increasingly find themselves fulfilling her sad prophecy.

Abbas Milani heads the Iranian studies program at Stanford and is co-director of the Iran Democracy Project at the Hoover Institution. Israel Waismel-Manor is a senior lecturer at the University of Haifa and a visiting associate professor of political science at Stanford.