MADRID -- Spain says it plans to ban outdoor work during periods of extreme heat.

Second Deputy Prime Minister Yolanda Diaz told reporters Wednesday that the government will modify legislation covering occupational risks to prohibit outdoor work when the state weather agency, AEMET, issues red or orange alerts.

The agency frequently issues such alerts when temperature increases pose a risk for citizens outdoors or for the environment.

Last year was Spain's hottest since record-keeping started in 1961, and last month was the hottest and driest April on record.

Much of the country is experiencing drought, and water reserves are below 50%.

Diaz, who is also labour minister, said that the modifications would be announced by Spain's Cabinet, but gave no further details.

The government will hold a special Cabinet meeting on drought measures on Thursday.

It wasn't immediately clear how the measure announced by Diaz would apply to workers such as farmers, farmhands, police, firefighters, gardeners or cleaners.

In places accustomed to high temperatures, such as Spain's southern Andalusia region, construction workers already work only morning hours during the summer.

A temporary street cleaner died of a heat stroke while working in Madrid last year.