Atletico Madrid remain three points above Sevilla in third, after the latter were beaten in an entertaining contest at La Rosaleda.
Sevilla's hopes of qualifying automatically for the Champions League group stages were dented on Monday as they suffered a 4-2 LaLiga defeat at in-form Malaga.
Franco Vazquez scored in each half for Jorge Sampaoli's side, but those strikes came either side of Pablo Fornals and Sandro finding the target. Diego Llorente's 77th-minute header then put Malaga in front for a second time before substitute Juankar rounded off the scoring late on, converting a rebound from Sandro's saved penalty.