InfoChina Gestión, a real estate company based in Madrid that focuses on Chinese investors, said the number of houses sold for €70,000 to €100,000 to Chinese nearly doubled last year, to 813. Mr. House, a real estate company in Madrid, said it was selling at least 10 houses a month to Chinese, a majority of whom paid at least 80 percent in cash.

The types of work many Chinese immigrants gravitate toward helps explain their success as much as their work ethic. In a time of economic crisis, ubiquitous low-margin Chinese-owned bazaars, hairdressers and supermarkets have become a lure for cost-conscious Spanish consumers.

“If it wasn’t for the Chinese shops, it would be harder to scrape by,” said Ester Maduerga, 30, a saleswoman at a sports shoe store, as she scanned the notepads, leather belts and plastic alligators at One Hundred and More, a Chinese-owned bazaar here.

Xi Li He, 26, the bazaar’s manager and cashier, said the business was flourishing, in part because he had reduced prices by importing inexpensive goods from China. When Mr. Xi, fresh from business school, tried to take a job at a large Spanish retailer, he said his mother doubled his salary.

That kind of success by Chinese immigrants has provided a beachhead of sorts for further investment from China that has pumped some life into an otherwise moribund Spanish economy.

Before Spain’s crisis exploded in 2008, Chinese foreign investment in Spain was negligible. By last year, it had grown to €70 million, according to ICEX, a government investment agency.

Ivana Casaburi, a professor of international marketing at Esade business school in Barcelona, said Chinese companies were being drawn to Spain because it offered a low-cost gateway to the European Union, the world’s biggest trading bloc.