China for the first time became Germany's most important trading partner in 2016, overtaking the United States, which fell back to third place behind France, data showed on Friday.

German imports from and exports to China rose to €170 billion ($180 billion) last year, Federal Statistics Office figures reviewed by Reuters showed.

The development is likely to be welcomed by the German government, which has made it a goal to safeguard global free trade after U.S. President Donald Trump threatened to impose tariffs on imports and his top adviser on trade accused Germany of exploiting a weak euro to boost exports.