Ivory Coast's Roger Assale was on target as Kenneth Omeruo and Chidozie Awaziem's Leganes suffered relegation from La Liga following their 2-2 draw against Real Madrid.
Assale came off the bench in the 55th minute to score a 78th-minute equaliser for Javier Aguirre's men after goals from Sergio Ramos and Marco Asensio had put the league champions ahead.
Omeruo and Awaziem could not help the hosts avoid relegation to the second division as they were unused substitutes alongside Morocco's Aymane Mourid at Estadio Municipal de Butarque on Sunday.
- Finisher, creator, Real Madrid leader: Should Benzema be in contention for the Ballon d'Or?
- Out of the Champions League, out of the title race? Man City’s early season crisis continues with historic Arsenal defeat
- Brahim Diaz played more Fortnite than football in Madrid but Guardiola's protege is finally blossoming in Milan
- What crisis?! Arteta’s blueprint emerges as vibrant Arsenal crush Spurs to ignite season
Assale's goal was his second in the Spanish top-flight this season, after opening his goal account against Athletic Club on Thursday.
Since the resumption of football in Spain after the coronavirus hiatus, Leganes were the only team that took points off Zinedine Zidane's men with the draw.
Omeruo joined Aguirre's men permanently from Chelsea last summer and he made 23 league appearances this season with a goal to his name.
The Super Eagles defender recently recovered from a hamstring injury and did not play for the Cucumber Growers since his last outing against Sevilla on June 30.
Awaziem, who is on loan from Portuguese outfit Porto, played 26 games for Leganes and was a key fixture in Aguirre's defence.
After winning eight matches and losing 18, Leganes ended the 2019-20 season in the 18th spot with 35 points from 37 matches, a point adrift of safety.
They will be playing in the Segunda Division next season with Espanyol and Mallorca.