Real Madrid delayed Barcelona's claim to the Spanish league title by trouncing 10-man Malaga 6-2 at the Santiago Bernabeu on Wednesday.
Had the Spanish powerhouse dropped a point, Barcelona would have lifted its 22nd league crown, its fourth in five seasons.
Instead, a determined-looking Madrid went on a goal rampage, opening the scoring when Raul Albiol headed inside the far post from a corner launched by Luka Modric in the third minute.
Roque Santa Cruz equalized in the 15th minute when he bounced in a ball off the far post after a corner kicked by Francisco "Isco'' Alarcon.
Sergio Sanchez conceded a penalty and earned a straight red card in the 21st minute when he held an advancing Cristiano Ronaldo in the penalty area. The Portuguese international tried to convert the penalty but goalkeeper Wilfredo Caballero kicked the Madrid forward's powerful shot clear with his outstretched left foot.
Ronaldo made up for the miss by adding the second goal five minutes later with a precisely free kick from just outside the box.
Mesut Ozil raced up the left flank and, in a thrilling display of individual skill, sidestepped two defenders and shot past Caballero in the 34th.
Vitorino Antunes pulled one back for Malaga two minutes later by connecting sweetly with a ball just outside the penalty area and shooting over goalkeeper Diego Lopez's reach into the far post.
Caballero was substituted by Idriss Kameni in the 42nd.
Karim Benzema scored in first-half injury time by poking in a delicate sideways tap by Ronaldo inside the penalty area four minutes later.
Modric scored his third league goal of the season in the 63rd but coach Jose Mourinho looked concerned by Ozil's apparent ankle injury when the German international fell awkwardly and had to leave the field later in the second half.
Angel Di Maria scored Madrid's sixth in injury time.
Atletico Madrid reinforced its claim to a Champions League berth next season by brushing aside Celta Vigo 3-1. Atletico is third in the standings, and Celta remains in the relegation zone.
Diego Costa opened the scoring for Atletico in the 47th minute when he connected with Miranda's back-header.
Juan Francisco Torres extended the lead in the 66th by striking a powerful shot that defender Roberto Lago couldn't intercept.
Forward Augusto Fernandez pulled one back for Celta in the 83rd.
Radamel Falcao added the third in the 86th by beating three defenders to rifle a shot past Celta goalkeeper Javier Varas, and could have stretched Atletico's score in injury time but had his shot blocked by Varas.