Barcelona scored four times in the final 30 minutes to earn a 4-2 win over Eibar in their final La Liga game of the season.
A couple of Takashi Inui goals stunned the hosts, who needed all three points and a Malaga victory over Real Madrid to stand any chance of winning the title.
They did eventually manage to complete their half of the bargain, scoring through a David Junca own goal, a close-range Luis Suarez finish and a couple of Lionel Messi goals in a dramatic game.
Relive how the 90 minutes of action unfolded with Sports Mole's live text coverage below.
BARCELONA XI: Ter Stegen; Roberto, Umtiti, Marlon, Alba; Rakitic, Busquets, Iniesta; Messi, Suarez, Neymar
EIBAR XI: Yoel; Capa, Lejeune, Arbilla, Junca; Pena, Dani Garcia, Escalante, Inui; Enrich, Kike
BARCELONA SUBS: Cillessen, Denis Suarez, Arda Turan, Alcacer, Digne, Gomes, Borja Lopez
EIBAR SUBS: Riesgo, Galvez, Rivera, Dos Santos, Pedro Leon, Adrian, Bebe
Luis Enrique: "Focusing on work is the only way to deal with this situation. If we win the league, fantastic and we'll celebrate it. Otherwise, we will congratulate the champion because that is my modus operandi as a professional."
Jose Luis Mendilibar: "They are accustomed and have great players. We will have to do our work. They will pay even more attention to La Rosaleda and that may benefit them. Even so, I do not think they will be 3-0 up in the first few minutes."
Less than two minutes on the clock at La Rosaleda and Madrid already have the lead - Ronaldo latching on to an Isco through-ball and making no mistake when one-on-one. A crucial moment in the evening at such an early point. Could it be game over already?
> Click here to vote in the Sports Mole Reader Awards 2016-17
BARCELONA SUBS: Cillessen, Denis Suarez, Arda Turan, Alcacer, Digne, Gomes, Borja Lopez
EIBAR SUBS: Riesgo, Galvez, Rivera, Dos Santos, Pedro Leon, Adrian, Bebe
The La Liga title race is over. Los Blancos are two up at La Rosaleda, meaning that Malaga now need to score three times. It matters little, anyway, because Barca are themselves trailing at home to Eibar.
> Click here to vote in the Sports Mole Reader Awards 2016-17