Palermo have claimed a last-day win away at Roma in the last minute of stoppage time.
The away side nullified Roma's threat inside the first 20 minutes and almost took the lead when Franco Vazquez tried to catch the keeper off his line from inside his own half.
Unfortunately for the striker, his effort cleared the bar by a few inches. Palermo remained on top, however, and Lukasz Skorupski was forced into a reflex save to deny Enzo Maresca's header.
Mato Jajalo then became the latest Palermo player to go close to breaking the deadlock with an effort from long range which sailed marginally wide.
Eventually, Roma caved in, though, as the referee awarded Palermo a penalty for handball against Nicolas Spolli, and Vasquez converted from the spot.
The Palermo striker almost doubled their lead after the break but he headed over the bar from close range.
The away side were noticeably deeper in the second half as they let Roma have the majority of possession. However, the Serie A runners-up were wasteful in wide areas, and struggled to penetrate Palermo's resolute defence.
However, they found the net with just five minutes remaining as Francesco Totti latched on to the end of Radja Nainggolan's through-ball and slotted it past the keeper.
Roma almost won the game a few minutes later, but Miralem Pjanic headed Federico Balzaretti's cross wide from close range.
That miss would prove to be doubly costly too as Palermo went up the other and scored through Andrea Belotti to steal the victory.