The U.S. trade deficit in goods with Japan was its second-largest in 2016, totaling $68.94 billion, according to new U.S. government data.

The trade gap with China was five times bigger, topping the list at $347.04 billion, the Commerce Department said Tuesday. That was, however, 5.5 percent lower than a year earlier.

The deficit with Germany, the previous No. 2, shrank 13.3 percent to $64.87 billion as shipments to Germany surged 12.4 percent.