This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

MADRID (AP) — Spain’s leftist coalition government on Tuesday approved a plan to make available around 50,000 houses for rent at affordable prices as part of measures aimed at curbing soaring rents and house prices.

The apartments will come from the state-controlled SAREB “bad bank” that was set up in 2012 to manage and sell off troubled banks most toxic assets during the international financial crisis.

The SAREB plan follows a much-hailed agreement last week between the coalition parties and their parliamentary supporters for what would be democratic Spain’s first-ever housing law.

The bill, expected to get full parliamentary approval in the coming weeks, envisages putting a 3% cap on apartment rent increases in 2024 in so-called high-tension areas where rents increase most and restricting increases in future years.

As of 2024, rent increases will no longer be linked to the country’s high inflation rate but rather to a new, lower index.

Rents and house prices, alongside unemployment, are considered the biggest problems for people in Spain, particularly young people and low-income families.

“It is a major problem because housing in Spain is a constitutional right, but not a real one,” Socialist Prime Minister Pedro Sánchez said at a political meeting Sunday. He said young people often had to wait too long to be able to leave their family homes and get a place of their own.

The measures come just over a month before municipal and several regional elections that could be a litmus test for the government in general elections later this year.

Spain has one of the European Union’s highest average emancipation ages as high rents coupled with poor salaries and uncertain job conditions prevent many young from leaving their parental homes.

Spain put a 2% cap on rent increases last year as rents soared due to high inflation. Landowners have traditionally used the inflation rate to decide on increases.

The proposed housing bill also toughens eviction regulations.

The government said it was making 21,000 SAREB properties available to regional and city authorities. It will press for controlled social rents in 14,000 other properties already inhabited and use land owned by the SAREB to build 15,000 new apartments with controlled rents.

Sánchez promised to increase public housing from less than 3% to 20% of all housing but didn’t give a time frame for this. The EU average is 9%.

But it remains to be seen how effective the measures will be.

Under Spain’s political system, housing and education are basically in the hands of regional governments. But many regions and cities, including Madrid, are run by the right-wing Popular Party, which opposes the new law, claiming it interferes in the free market.