The country is a key driver of world growth and its demand for commodities has enormous implications for resource-rich nations from Australia to Nigeria.
China's imports have been shrinking since late 2014 as the country's once blistering expansion lost steam, slowed down by manufacturing overcapacity, a slowing property market and mounting debt.
But the year-on-year drop of 0.4 per cent in May imports marked the slowest rate of decline since October 2014, when they grew 4.6 per cent, customs data showed.
"Recovering commodity prices and relatively resilient domestic demand are driving a recovery in import growth," Julian Evans-Pritchard, an analyst with research firm Capital Economics, said in a note.
Also Read
The value for May imports stood at USD 131.1 billion, according to the Chinese customs office.
The improvement in imports is likely to last for the remainder of this year and "return to positive territory before long" partly because "the continued feed-through from earlier policy easing helps to prop up domestic demand", said Evans-Pritchard.
The key export sector has shown year-on-year declines for eight of the past 10 months as the country's economic growth has fallen to its slowest level in a quarter of a century.
Steel and aluminium exports continued to rise by volume in May, as the international community takes Beijing to task over concerns that it is flooding the market with the commodities.
China shipped 420,000 tonnes of aluminium last month, up 2.4 percent on year, according to the customs.
The increases come as countries around the world blame China for a supply glut that has left industry in Europe and elsewhere in turmoil.
As part of its promised reforms, the government has listed reducing overcapacity and excess inventory and cutting down borrowing as top priorities, with the country's ailing steel industry a key target.