At a huge Chinese art exhibition shortly after he took office in 2003, Brazilian President Luis Inacio Lula da Silva was effusive about the bilateral relationship. "If the Chinese believe in China and the Brazilians believe in Brazil, this could be the two countries' century," he said.

A couple of years later, the transpacific romance is on the rocks because of a massive tide of cheap Chinese imports flooding Brazil. Meanwhile, da Silva is facing criticism at home for having moved too quickly to embrace China in his effort to find a counterweight to U.S. influence.

China's booming market helped the Latin giant climb out of an economic hole earlier in the decade, with Brazilian exports of raw materials such as soybeans and iron ore key to its recovery. Now, the dispute with China shows that the Asian powerhouse may represent as much a headache as a help for Brazil.

"The expected investments and strategic alliance that loomed in 2004 between China and Brazil are far from becoming a reality," said Riordan Roett, a Latin America expert at Johns Hopkins University.

The two countries now are trying to pick up the pieces from trade negotiators' failure in Beijing last week to reach a deal that would lead to a voluntary restriction of some Chinese exports to Brazil. Like the United States and the European Union, Brazil was inundated with inexpensive Chinese textiles when a decades-old clothing-quota system was lifted at the beginning of this year.

Both the United States and E.U. quickly imposed trade sanctions on certain Chinese clothing imports; since then the E.U. has reached an accord with China that allows for a gradual increase in Chinese imports. The United States and China are still at odds over how to control textile imports, with talks expected to resume Wednesday and Thursday in Beijing.

After its talks with China failed last week, Brazil issued a decree that will allow companies to ask the government to slap safeguards -- quotas or higher tariffs -- against Chinese imports. The move followed months of heavy lobbying by Brazilian shoe, toy and textile makers, which have been hurt by Chinese competition.

Brazilians are disappointed by the meager returns from the government's move last November to recognize China as a market economy. Such status makes it harder for Brazil to impose antidumping penalties on China. Brazil's complaint is that while it exports a lot to China -- $4.1 billion through the first eight months of the year -- the majority of its exports are commodities and low-value-added goods.

Meanwhile, Brazil is experiencing a surge in imports of Chinese manufactured goods that has reduced its bilateral trade surplus 51 percent from a year earlier. And billions of dollars of promised Chinese investment in infrastructure have been slow in materializing.

Some analysts fault Brazilian negotiators for having moved too quickly to embrace China. "I think [Brazil] gave away a lot without obtaining much back," said Joao Marcus Marinho Nunes, an economist for the AgoraSenior brokerage firm. "Running after concessions after you've already given something away isn't good business."

China's ambassador to the World Trade Organization, Sun Zhenyu, said last week that Brazil's move to apply import restrictions "would not be positive for the relationship between the two countries." He said China had been under the impression that negotiations between the two countries would continue.

Some analysts say the Chinese are not entirely to blame for the slow pace of expected infrastructure investments in Brazil. Da Silva's administration delayed developing the investment rules and cutting the bureaucracy standing in the way of some of the planned Chinese investments, they say. Part of the problem is that the Brazilian government has been virtually paralyzed by a corruption scandal for several months.

Brazil is not the only Latin American economy that feels let down by its recent expansion of trade ties with China. Argentina also granted China market status last November. In the first seven months of this year, Argentine imports from China grew 70 percent while exports grew 22 percent. Even though Argentina still runs a large trade surplus with China, in August, Argentina slapped licensing requirements on imports of Chinese shoes and toys -- as well as those from Brazil.

For now, it does not appear as though the Brazil-China flap will affect the two nations' alliance in the Group of 20 industrial and developing nations working together in WTO talks. That group, which also includes India and South Africa, is looking to force rich nations to open their agricultural markets. "Brazil has a broader and more important game at the G-20 that does not involve China only," said Gilberto Dupas, a foreign policy specialist at the University of Sao Paulo. "The G-20 goes beyond these perceived disappointments with China."

A farmer harvests soybeans in China's Jilin Province. Exports of raw materials to China benefited Brazil, but it's being inundated with Chinese textiles now.Brazilian President Luiz Inacio Lula da Silva, right, embraced Chinese Vice-Premier Hui Liangyu at a conference in Beijing in 2004.