A review of the weekend's action in Italy's Serie A.
AC Milan claimed a dramatic 2-1 win at Siena to claim the final Champions League place on the last day of the Serie A season.
With Fiorentina beating Pescara 5-1 the pressure was on Massimiliano Allegri's men and they were out of the top three when Claudio Terzi gave Siena the lead in the 25th minute.
Milan captain Massimo Ambrosini and Siena's Christian Terlizzi were then both sent off for second bookable offences in the space of two minutes before Mario Balotelli and Philippe Mexes netted to hand Milan the win.
Fiorentina put five goals past relegated Pescara only to suffer late heartache at the Stadio Adriatico as the win proved futile in their bid to reach the Champions League.
Vincenzo Montella's side saw off their relegated hosts with ease thanks to a hat-trick from Adem Ljajic and goals from Steven Jovetic and Matias Fernandez.
Marco Vittiglio scored a consolation for the hosts, but there was no consoling Fiorentina at the final whistle as they discovered their efforts had been in vain.
Lazio must pursue Europa League football through the Coppa Italia final after defeat at Cagliari condemned the capital club to seventh place in Serie A.
Vladimir Petkovic's men needed both a victory and fifth-placed Udinese to slip up at Inter Milan, but the Bianconeri did not oblige while Daniele Dessena claimed all three points for Cagliari with a late header.
Lazio now face Roma, who took sixth spot by beating Napoli, in the first-ever Rome derby final on May 26, with triumph promising the triple reward of a trophy, the bragging rights, and the chance to compete on the continent in the autumn.
Udinese made no mistake in tying down the final automatic Europa League place by condemning Inter Milan to one last defeat at the end of a miserable Serie A season at San Siro.
There was no prospect of continental competition for the Azzurri, who limped over the line to finish ninth, but Udinese knew victory would bar Lazio from snatching fifth place.
Quickfire goals from Giampiero Pinzi and Maurizio Domizzi proved the visitors' intent with Antonio Di Natale, Gabriel Silva and Luis Muriel later rendering efforts from Juan Jesus and Tommaso Rocchi mere consolations.
Palermo suffered a home defeat to Parma in their final outing in Italy's top flight ahead of their relegation to Serie B.
Napoli coach Walter Mazzarri lost to the club who could well offer him his next challenge in Serie A management as Roma beat the league's second-best team on the last day of the season.
The Tuscan tactician announced his departure from Napoli soon after Sunday's season-ending clash at the Stadio Olimpico, which was settled by second-half goals from Marquinho and Mattia Destro.
Roma, who could replace interim boss Aurelio Andreazzoli with Mazzarri in the coming days, rode out an open game to tie down sixth place after Edinson Cavani struck late on.
Torino and Catania ended their Serie A campaigns with an entertaining 2-2 draw at the Stadio Olimpico.
Sergio Almiron gave the visitors the lead in the first half but Alessio Cerci levelled things up after the break.
Gonzalo Bergessio put the visitors back ahead but Rolando Bianchi netted seven minutes from time to snatch a share of the points.
A late goal from Cyril Thereau denied Atalanta a winning end to the Serie A season as Chievo took home a point from a 2-2 draw at the Stadio Atleti Azzurri d'Italia.
Atalanta led twice with Guglielmo Stendardo first to put them ahead in the eighth minute before Thereau levelled in the 76th.
Luigi Giorgi restored Atalanta's lead six minutes from time only for Thereau to level with almost the last kick of the game.
Bologna and Genoa ended the Serie A season with a point apiece but failed to score any goals at the Stadio Renato Dall'Ara.
There were plenty of chances in the first half with the home team hitting the woodwork, but the action slowly ebbed away with both sides happy enough to take a point on the final day of the season.
Both clubs end their campaigns in the bottom half of the table, a little too close to the bottom three than they would have expected or hoped to be nine months ago.
On Saturday night, Sampdoria completed a double over Serie A champions Juventus with a 3-2 win at a rainswept Stadio Luigi Ferraris.
Eder, Lorenzo De Silvestri and Mauro Icardi maintained the Blucerchiati's excellent record against the dominant force of Italian football after Fabio Quagliarella had put Antonio Conte's side in front.
Emmanuel Giaccherini added a second late on for Juve, but they were left still waiting for their first win again the Genovese club in four years.