The result also means second-placed Real Sociedad can reclaim top spot if they beat Eibar on Sunday.
Real Madrid closed to within three points of La Liga leaders Barcelona and Atletico Madrid at the halfway stage of the season when a Pepe header secured a laboured 1-0 win at mid-table Espanyol on Sunday.
Barcelona's 100 per cent start to the season was ended by Catalonian neighbours Girona, who picked up a draw at the Nou Camp, allowing Real Madrid to take advantage with a victory over Espanyol.
The Portugal forward will miss Real's league games against Villarreal, Getafe and Elche but will be available for the King's Cup semi-final, first leg at home to holders Atletico Madrid later on Wednesday and the return game next week.
Brighton and Hove Albion scored late to earn a 1-1 draw at Crystal Palace. Sheffield United and Fulham also drew 1-1 as both teams picked up their first points.
Atletico Madrid secured a berth in the Champions League group stage for next season and Deportivo La Coruna narrowly escaped relegation when they came from two goals down to draw 2-2 at champions Barcelona on the final day in La Liga on Saturday.
Real Madrid closed to within two points of La Liga leaders Barcelona after demolishing nine-man Rayo Vallecano 10-2 while Atletico Madrid missed a chance to seize top spot outright by losing 1-0 at Malaga.
Levante were relegated from La Liga after a six-season stay in the Spanish top flight as two late goals condemned them to a 3-1 defeat at Malaga on Monday.
Paris St Germain extended their Ligue 1 lead to 13 points with a 4-3 home victory against Girondins de Bordeaux on Sunday but the French champions were again exposed at the back and had Neymar sent off. A Marquinhos double, Edinson Cavani's 200th PSG goal and a goal by Kylian Mbappe put the capital side on 65 points from 26 games but they lost captain Thiago Silva to a muscle injury and Neymar picked up a straight red card for a late challenge in stoppage time.
News of all that transpired on and off the football field.
IMAGES from soccer matches played in the EPL, La Liga and Serie A on Tuesday.
Zlatan Ibrahimovic bagging four goals, while Juventus and Bayern Munich preserved their leads and FA Cup holders Arsenal were dumped out of the competition.
Napoli have agreed to buy Spain centre back Raul Albiol from Real Madrid, the Serie A club said on Sunday.
IMAGES from the La Liga matches played on Sunday
News of all that transpired on and off the football field
Struggling Rayo win at Valladolid after late penalty save
Unai Emery's side were heading for a demoralising defeat, three days after losing meekly to Sheffield United in the Premier League, but substitute Pepe's late intervention kept the Gunners top of Group F with a maximum nine points.
Spain's preparations for Euro 2016 suffered a blow as they were beaten 1-0 by Georgia on Tuesday in their final warmup friendly ahead of the tournament in France. Tornike Okriashvili tapped in from close range in the 39th minute to secure a surprise victory for Georgia at Getafe's Coliseum Alfonso Perez stadium. Spain, who have won the last two European Championships, had not lost since being beaten in a friendly by the Netherlands in March 2015 and came into their final warmup match after convincing wins against Bosnia and South Korea. The hosts, however, lacked a cutting edge against a well-organised Georgia side who defended deep after taking the lead.
Stuttering Villarreal closed to within a point of the Champions League qualification places when a second-half Cedric Bakambu double secured a 2-1 comeback win at home to Rayo Vallecano in La Liga on Sunday.
As we sit at home and miss live action, the wondrous phenomenon of sport has delivered so many past glories that we will probably never run out of things to see, recalls Dhruv Munjal.
Real Madrid's La Liga title bid took a dent after Zinedine Zidane's leaders were held to a 2-2 draw at home to Celta Vigo on Sunday, denied all three points by a late strike from Santi Mina. Lazio mounted a superb second-half comeback at the Olympic Stadium to beat Inter Milan 2-1 and move above Antonio Conte's side into second place in Serie A on Sunday.
La Liga champions Real Madrid beat Getafe 3-1 on Saturday with a goal from Gareth Bale and two strikes from Cristiano Ronaldo to go 12 points behind leaders Barcelona and warm up for next week's Champions League game at Paris St Germain.
La Liga leaders Barcelona hit two goals in the final three minutes to earn a 3-2 win at Rayo Vallecano
The Real Madrid forward apologises after Real Madrid dumped out of King's Cup by Atletico Madrid.
News of all that's transpired on and off the football field
Spain captain Iker Casillas believes David de Gea is "no longer a future prospect but a strong contender" to play in goal for the national team at Euro 2016. Porto goalkeeper Casillas has been the country's first-choice keeper since 2002 but De Gea is considered favourite to start after a solid season for Manchester United. "De Gea is no longer the future but a strong contender," Casillas told Cadena Cope radio. "It's clear that all of us that are here, we think that we can play. "We are 23 players that play as starters for important clubs and we all believe that we can help the national team but deciding who starts is the coach's job." Spain coach Vicente del Bosque will not make a decision of who will play between the posts until June 13, when his team begins its European Championship campaign against the Czech Republic in Toulouse.
Real Madrid midfielder Sami Khedira has accused the La Liga club of freezing him out by dropping him from the team after talks on a contract extension broke down even though he was fit to play.
A bullet header from Nicolas Otamendi put Valencia on course for a 3-1 victory over Eibar in La Liga on Sunday that boosted their hopes of claiming a Champions League place.
Valencia's Paco Alcacer and Dani Parejo both hit doubles in a surprise 5-1 away thrashing of high-flying Celta Vigo in La Liga on Saturday.
Real Madrid opened a three-point lead over Barcelona at the top of La Liga when Cristiano Ronaldo scored his eighth goal of the campaign in a 3-1 victory at home to promoted Las Palmas on Saturday.
Real Madrid's Wales winger and record signing Gareth Bale should have recovered from a muscle strain in his left thigh in around 15 days, Real coach Carlo Ancelotti said on Wednesday.
Karim Benzema scored twice after the interval with a penalty and a header from a corner to give Santiago Solari's side a 3-1 lead, after Raphael Varane struck in the 34th minute to cancel out Anuar Tuhami's goal for Valladolid five minutes earlier.
Spain are among the favourites to win the European Championship this summer but the team's 1-0 home defeat to Georgia on Tuesday has set alarm bells ringing. In their last warm-up game before the tournament and nearly two years on from their first-round exit at the World Cup in Brazil, Spain lost to a team ranked number 137 by FIFA. "Gatillazo" (Damp squib) was the headline in Wednesday's AS newspaper after the team's loss in Getafe.
The Portuguese forward then fired in the penalty in the sixth minute of stoppage time.
Neymar made his return to the pitch after a three-month injury lay-off as Paris St Germain celebrated their eighth Ligue 1 title with a 3-1 win against Monaco at the Parc des Princes on Sunday.
Costa turned Juanfran's low cross into the net in the 69th minute for Atletico's third goal in the first leg of the last 16 tie against third division Lleida but immediately limped to the sidelines. He did return to the pitch, however, and completed the game despite bleeding from his knee.
La Liga's reputation as the epicenter of world soccer talent has been bruised by the world record smashing sale of Neymar to Paris St Germain and how Barcelona react to the departure of one of their leading players will define the new season in Spain.
Cristiano Ronaldo scored twice as Real Madrid beat Athletic Bilbao 4-2 in a thrilling match at the Bernabeu to move within a point of leaders Barcelona in La Liga on Saturday.
Barcelona leapfrogged Atletico Madrid to go top of La Liga after Lionel Messi's acrobatic volley secured a hard-fought 2-1 victory against tenacious Malaga on Saturday.