The Commerce Department said today that the deficit rose 4 percent to $27 billion, from May's $26 billion. The May imbalance had been the lowest deficit in nearly a decade.

The bigger June deficit reflected an increase in imports for the first time in nearly a year, an indication that demand in the U.S. is starting to revive.

In a good sign for American producers, exports rose for the second straight month. That could be a signal global demand also is starting to rebound.

Imports of goods and services climbed 2.3 percent to $152.8 billion. A 23.8 percent jump in petroleum to $21.5 billion led the increase. That was the largest amount this year, reflecting higher volume and rising oil prices. Imports of other products also rose, led by autos, computers and civilian aircraft.

Exports rose 2 percent to $125.8 billion, good news for America's manufacturing sector, which has seen demand slump domestically and in key foreign markets as the recession that began in the U.S. in December 2007 spread worldwide.

Even with the increase in exports and imports, the overall deficit is running well below last year's levels. Through the first half of this year, the deficit is running at an annual rate of $345.9 billion, about half the $695.9 billion imbalance for all of 2008.

Economists believe the deficit will widen slightly in coming months but will still finish the year far below the 2008 level. They expect the imbalance to begin to rise again in 2010 as the U.S. and global economies start to mend.

The politically sensitive deficit with China increased 5.4 percent to $18.4 billion, the highest level since January. But for the year, that deficit is running 13.1 percent below last year's record pace.

The Obama administration sought to play down trade tensions between the two nations during recent high level meetings. The change in tone partly reflects the growing dependence of the U.S. on the willingness of China, the largest holder of U.S. Treasury securities, to keep buying U.S. debt as the federal budget deficit soars to record levels. The deficit has soared due to massive spending by the administration to jump-start the economy and deal with the worst financial crisis since the Great Depression of the 1930s.

However, U.S. manufacturers have criticized the administration for not pressing the Chinese to do more to alter currency policies they contend are among the major reasons for America's huge trade gap with China, the largest with any country.

The economic troubles have increased political pressure to raise trade barriers to protect domestic industries in both the U.S. and China. A Chinese trade official said Wednesday a U.S. complaint that China's tire imports were harming American tire manufacturers violated trade rules overseen by the World Trade Organization.

"I believe the case is neither supported by facts nor does it have valid legal grounds," a deputy commerce minister, Fu Ziying, said at a Beijing news conference. "It is against basic WTO principles and looks like trade protectionism."

Besides tires, Washington has launched a series of investigations into whether Chinese exporters were dumping goods in the U.S. including wooden bedroom furniture, honey, candles, gift boxes, industrial chemicals and fresh garlic.

___

AP Business Writer Joe McDonald in Beijing contributed to this report.