Antonio Sanabria headed a stoppage-time winner as Real Betis stunned La Liga champions Real Madrid 1-0 at the Bernabeu on Wednesday night.
Paraguay international Sanabria struck in the fourth minute of time added on to leave Zinedine Zidane’s side without a home league win after three games this season.
Los Blancos, who drew their previous two home league games against Valencia and Levante, have slipped to seventh in the table, seven points adrift of leaders Barcelona.
Gareth Bale, Luka Modric, Cristiano Ronaldo, Casemiro and Isco all spurned first-half chances.
Ronaldo continued to be wayward in front of goal in the second period, while Real defender Daniel Carvajal’s 56th-minute shot hit a post.
Betis goalkeeper Antonio Adan was in fine form, keeping out a long-range effort from Toni Kroos before striker Sanabria headed home Antonio Barragan's cross deep in stoppage time following a corner.
Former Manchester City winger Jesus Navas fired the only goal as second-placed Sevilla closed the gap on leaders Barcelona to two points after a 1-0 home win against Las Palmas.
Navas lashed home a shot into the top corner from outside the penalty area and from a tight angle in the 83rd minute as Sevilla extended their unbeaten start to the season to eight games in all competitions.
Angel Correa and Yannick Carrasco scored second-half goals as Atletico Madrid extended their unbeaten start to five matches with a 2-1 win at Athletic Bilbao.
Atletico, unbeaten in six games in all competitions this season, broke the deadlock through Correa 10 minutes into the second half and Carrasco added a second in the 73rd minute.
Bilbao, who slipped to a first home defeat of the season, squandered a first-half penalty when Aritz Aduriz's spot kick, for Filipe Luis's foul on Raul Garcia, was saved by Jan Oblak.
Bilbao midfielder Garcia struck a late consolation for the Basque side in the second minute of time added on.
Leganes drew 0-0 at home against Girona, but were grateful for the woodwork in the 73rd minute when visiting defender Juanpe's header hit the crossbar.
Portuguese defender Luisinho's solitary goal clinched Deportivo La Coruna a 1-0 home win against fellow strugglers Alaves.
Luisinho fired home in first-half stoppage time to secure Deportivo their first league win of the season and lift them out of the bottom three.
Deportivo goalkeeper Costel Pantilimon denied Alaves an equaliser early in the second half when he saved winger Burgui’s angled drive in the bottom corner.
Alaves, who stay second from bottom, and Malaga have both lost their first five league games.