Apple’s struggling iPhone sales just got a boost from the Chinese government.

The tech company slashed prices on iPhones, iPads and other products on its official Chinese website on Monday.

The move was in response to new tax cuts for manufacturing and other sectors that kicked in on April 1, according to state-run news agency Xinhua.

China reduced the value-added tax rate by three percentage points.

Apple (AAPL)’s price cuts are steeper — the company slashed prices of key products by nearly 6%.

The latest 64GB iPhone XS is now 8,199 yuan ($1,220), making it 500 yuan ($74) cheaper for Chinese buyers. The iPhone XR dropped in price by 300 yuan ($45).

Apple declined to comment on the price changes.

The company raised alarm bells in January when CEO Tim Cook warned investors that “more severe” economic conditions in China weighed on iPhone sales last year.

Cook later told Reuters that Apple would lower iPhone prices in some markets outside the United States to offset the strong US dollar.

But the iPhone had already been struggling in China, even before the country’s economy showed signs of slowing and the weak Chinese yuan bumped up prices.

Apple’s smartphone sales in China have been declining for more than three years and plunged by 20% last quarter, according to market research firm IDC.

The California company faces stiff competition from domestic rivals like Huawei, Oppo, Vivo and Xiaomi, which all offer cheaper, high-end smartphones tailored for the Chinese market.

“Even with this price reduction, these iPhones are still more expensive than the competing ones from those such as Huawei,” said Kiranjeet Kaur, an analyst with IDC.

Still, China remains a key market for Apple, accounting for more than 15% of total sales. Revenue from the Greater China region — which includes Hong Kong and Taiwan — fell about 27% to $13.2 billion last quarter compared to the same period a year earlier.