AC Milan bounced back from its Champions League exit with a hard-fought 3-1 win at Empoli on Sunday.
Combined with Fiorentina's 1-0 loss at Siena, the victory moved Milan within one point of fourth place _ the position it now needs to qualify for next season's Champions League.
Massimo Ambrosini broke a 1-1 deadlock with a header in the 86th minute and Kaka added another goal for Milan in the 89th. Alexandre Pato had put Milan ahead in the 19th and Antonio Busce equalized for Empoli in the 23rd.
Milan struggled for long stretches, and Empoli nearly went ahead when Claudio Marchisio hit the post in the 56th.
Milan was eliminated from European play after a 2-0 loss to Arsenal on Tuesday.
Siena beat Fiorentina with a free kick by Massimo Maccarone in the 80th.
Also, AS Roma won 2-0 at Napoli with a goal from Simone Perrotta and a penalty kick by captain Francesco Totti, who played his 500th match for Roma in all competitions.
Inter Milan leads with 64 points, followed by Roma (58), Juventus (48), Fiorentina (47) and Milan (46).
Inter beat Reggina 2-0 on Saturday to coincide with the club's 100th anniversary celebration, and Juventus was playing at Genoa later.
In Sunday's other games, it was: Catania 2, Cagliari 1; Lazio 2, Livorno 0; Parma 1, Sampdoria 2; and Torino 1, Atalanta 0.