10-man Leganes beats Rayo to stay clear of relegation zone
The victory moved Leganes three points in front of Rayo, the first team inside the relegation zone after 22 matches.
The Madrid clubs entered the match at Vallecas Stadium tied on points near the bottom of the standings.
Leganes opened the scoring through forward Martin Braithwaite in the first half, then went a man down early in the second after defender Allan Nyom was sent off following a dangerous sliding tackle on an opponent.
Rayo left the relegation zone for the first time this season in the previous round.
Leganes moved from 17th to 13th with the victory, its first in three games.