China’s consumer and producer prices both declined in July from a year ago, a sign of deflationary pressure as demand in the world’s second-largest economy weakens.

The consumer price index dropped 0.3% last month from a year earlier, the National Bureau of Statistics said Wednesday, marking its first decline since February 2021. Economists surveyed by Bloomberg had predicted a 0.4% decline in prices.

Producer prices fell for a 10th consecutive month, contracting 4.4% in July from a year earlier, slightly worse than expected. It’s the first time since November 2020 that both consumer and producer prices registered contractions.