MADRID — In the campaign before regional and local elections across Spain on Sunday, Alberto Fabra, the leader of Valencia, decided he was drawing a “red line” under years of corruption. He would not, he pledged, allow any indicted official from his Popular Party to run again for office.

The problem has been finding politicians who are not indicted. His red line has turned out to be more gray instead.

Across this region, about 50 indicted politicians are hoping to win re-election on Sunday, even as they prepare to appear before courts in cases related mostly to the mishandling of public money, like taking kickbacks to award city contracts.

While Valencia Province, on Spain’s central Mediterranean coast, stands out as perhaps the most prominent example of the recycling of tainted politicians, the problem is one that plagues the entire country.