Kenyan government  had hoped to boost revenues with housing taxes. Photo: Reuters

A Kenyan court has ruled that a controversial housing levy introduced by President William Ruto was illegal, dealing a blow to his plans to shore up depleted government coffers.

The 1.5-percent levy on the salaries of all taxpaying Kenyans, to be matched by employers, was signed into law in June to fund an affordable housing programme.

The introduction of the tax lacked a comprehensive legal framework and the exclusion of informal workers was "discriminatory and irrational," a three-judge panel at the High Court in Nairobi said on Tuesday.

Stay order

"An order is granted prohibiting the respondents from collecting... the charge known as the affordable housing act," said judge David Majanja.

The government has asked the court for a stay order on its ruling.

The levy was imposed as part of a finance law that raised taxes on a wide range of items in a move that has had a ripple effect in a country already hamstrung by high inflation.

Anger over the rising prices, particularly for basics such as food and fuel, led to a series of sometimes deadly protests against Ruto's government earlier this year.

Click here to follow our WhatsApp channel for more stories.

AFP