The U.S. deficit in trade of goods and services shrank 6.2 percent in June from the previous month to $79.61 billion, the Commerce Department said Thursday.
U.S. exports increased 1.7 percent to $260.80 billion, the highest since comparable data became available in 1992, while imports edged down 0.3 percent to $340.41 billion.
By country, the U.S. goods trade deficit with Japan declined 18.2 percent to $4.59 billion.
The trade deficit with China grew 17.1 percent to $36.95 billion, the highest since November 2018, and that with Mexico rose 3.6 percent to $10.97 billion, according to the department.
Since the start of 2022, Japan has ranked the fifth-largest source of trade deficit for the United States after China, Mexico, Vietnam and Canada.
The global trade figures are measured on a balance-of-payments basis after seasonal adjustment, and the country-by-country and regional breakdowns are based on unadjusted customs-cleared data.