And when he wraps up his six-day trip to the U.S., Modi will have met with Tim Cook of Apple and visited the headquarters of Tesla and Facebook.

India is especially alluring to America’s tech companies. For one thing, New Delhi doesn’t block their entry. Facebook and Twitter, among others, are banned in China.

The only thing worse than being shut out of the world’s most populous country is being let in. Just ask Google, which had its source code filched and dominant market share stripped away by Beijing. Today, thanks to official help, home-grown Baidu had, according to one estimate, 79.8% of China’s overall search market by revenue in Q2.

How about the world’s largest software company? Microsoft has had to surrender source code and has been subject to continual harassment.

Think you can escape if your name is “Qualcomm”? In February, the Chinese central government, in the form of the National Development and Reform Commission, exacted a “fine” of $975 million and essentially undermined the chipmaker’s business model.

Xi Jinping’s China cuts down foreign competitors that win leading market shares. His latest attack on foreign tech companies occurred this summer, when the China Information Security Certification Center tried to get them to sign pledges to surrender intellectual property and user data and to ensure their products were “secure and controllable.”

This brazen attempt followed similar initiatives to force foreign tech vendors to give up source code, an effort thwarted in April by Washington but now apparently revived. In any event, China’s new National Security Law, enacted in July, will surely be used to obtain what Beijing has not so far taken.

Xi Jinping talks about pursuing reform, as he has did in Seattle to tech execs on his current trip, but his actions show he is determined to reserve China’s home market for Chinese competitors, preferably state-owned ones.

So far, Apple has escaped a debilitating attack on its business in China. Cook is bullish on the country, which he continually says will become Apple’s biggest market, and today things look good. The iPhone 6s and 6s Plus sold out within hours there, but Huawei Technologies—and Beijing—look like they are gunning for the iconic American brand.

No wonder India now looks so promising in comparison. It has not always been this way, however, as the country has been a backwater for tech companies. “We raised our fund during some of the toughest times in 2013 and early 2014,” Sandeep Murthy of Lightbox Ventures told Bloomberg Television last week. “At that time we would meet investors and you would talk about India and it was ‘ehhh, not necessarily the best place.’ ” “India is sort of the second child in the ecosystem,” he explained.