No, California isn’t an island. But it shares a problem with Taiwan: the predicament of the halfway country.

Taiwan is an independent nation—in its ambitions, its economy, its democracy. But many of the world’s countries refuse to recognize it as a separate nation, deferring to mainland China, which claims Taiwan as a possession and responds with threats whenever Taiwan goes its own way.

California shares some aspects of this half-country conundrum. Our state has the ambitions, economic power, and sophisticated government of one of the world’s leading nations. But it remains very much a part of the United States, which responds with threats whenever California goes its own way.

Yes, Californians fervently hope that our current conflict with the American government is temporary. But the hard truth is that California’s differences with America predate President Trump, and so our status as a halfway country will likely outlast him.

I spent last week in Taiwan, and the major lesson I learned is how exhausting it is being a smaller country in the shadow of a larger power. The challenges there resemble those of California, and of younger siblings everywhere. When you must constantly defend yourself against a bullying big brother, how do you develop into a success, much less a global model?

Of course, comparisons only go so far. While Californians suffer verbal and legal attacks from the federal government, the Chinese government threatens to attack Taiwan militarily, seizing the island nation by force if it becomes too independent.

Still, Taiwan and California have much in common. Both are overachievers. California has the world’s sixth largest economy, though with just 40 million citizens, it would rank 35th by population among nation-states. Taiwan has the world’s 22nd largest economy, with just 23 million people, making it 55th most populous worldwide.

Even in an era of rising nationalism, Taiwan and California go their own ways, remaining stubbornly internationalist, committed to free trade and immigration. Despite struggling to forge diplomatic relations, Taiwan stays close to other China neighbors—especially Japan—for self-defense. California, in a similar spirit, works with other states in legal defense against the federal government, and has made alliances with other countries to address climate change.

While the economies of California and Taiwan are tethered to these larger countries, both places see themselves as defenders of openness and democratic values that are at odds with the increasingly authoritarian governments of their national big brothers.

That authoritarianism has sparked resistance in both places. Taiwan and California each have independence movements that want a more formal split—which adds to the risk of greater conflict. Last week, two former Taiwan presidents and the head of a broadcasting company announced a campaign to force a referendum for Taiwanese independence. Back in California, different groups have filed ballot initiatives seeking votes on California independence.

Both movements pose the same question: how many threats must we suffer from Beijing or Washington before enough is enough?

There are many Taiwanese answers to this. The mainstream response is to stay the course. “We don’t want to be in conflict with China,” Taiwanese premier Lai Ching-te said at a Taipei forum I attended. “But we won’t bend to pressure either.”

But I also heard more robust, provocative answers.

First, be opportunistic in building solidarity. Whenever the Chinese issue threats, point that out to the world, and use it to develop a shared sense of identity. Taiwan has been adept at this. A generation ago, most Taiwanese told pollsters they saw themselves as Chinese. Now, after decades of Chinese bullying, most Taiwanese see themselves as primarily Taiwanese.

Second, never miss an opportunity to expand your autonomy when the larger power leaves an opening. To imagine how that logic might apply to California, consider President Trump’s recent suggestion that he might remove federal immigration enforcement from California. Our state’s political leaders reacted by condemning the president or disregarding the comments as Trumpian nonsense. Perhaps, instead, they should have taken his statements as an offer—and accepted it, declaring the state would happily take control of immigration enforcement.

Finally, success is the best revenge. Conflict is competition, so do everything you can to be friendlier, more democratic—and more attractive than the larger power menacing you. The most interesting conversations I heard in Taipei were about whether Taiwan should respond to China’s militaristic behavior by declaring itself officially an island of peace—a neutral country, like Switzerland, unwilling to participate in wars outside its boundaries. Such a stance might make it harder for China to attack, and win Taiwan more international support.

And just imagine how popular it might be if California, perhaps through ballot initiative, declared its own official neutrality and said it would no longer support America’s costly and endless wars.

It is possible to take the California-Taiwan comparison too far. “The mainland has missiles pointed at us,” one Taiwanese journalist reminded me. “Does American have missiles pointed at you in California?”

No. But I took heart that Taiwan and California are pursuing strategies based on a similar faith: that a smaller place doesn’t have to be at the mercy of the larger place. That a smaller place, through the power of its own example, can reshape the larger place.

California’s long history of leading America to the future suggests there is real wisdom in such an approach. People in Taiwan—whose foreign investment-based economic revival inspired China to open itself up to foreign investment decades ago—can see this too.

In Taichung, I visited a new Literary Museum located in an old police dormitory from the Japanese colonial period. In one courtyard, I encountered the most magnificent tree you’ll see outside Sequoia National Park. It’s a banyan that has grown so many different roots, that it now appears to be multiple trees with a couple different trunks.

“In this way,” said a guide, “a tree becomes a forest.”