Valencia withstood a late onslaught from Real Betis to move up to second with an enthralling 6-3 win at the Benito Villamarin on Sunday.
The visitors looked to be cruising to a fifth win in eight games this season as Geoffrey Kondogbia, Gon-calo Guedes, Rodrigo and Santi Mina fired them into a 4-0 lead with just over 10 minutes to go.
However, Betis threat-ened a stunning comeback as three goals in five minutes from Joel Campbell, Antonio Sanabria and Cristian Tello set up a thrilling finale.
Valencia are now four points adrift of La Liga leaders Barcelona with third-placed Real Madrid a point further back.
Malaga remain winless and rooted to the bottom of the table, five points off safety.