Juventus secured a place in the Champions League on Sunday by edging past relegated Venezia 3-2, clinching the final Serie A spot on the last day of the season by a single point ahead of Roma, who won 2-0 at Torino.
Manuel Locatelli's penalty in the 73rd minute proved decisive in an entertaining match on the Venetian Lagoon, ensuring Juve finished fourth after a dramatic campaign.
The visitors appeared to be cruising to victory after Kenan Yildiz and Randal Kolo Muani scored within a short space of time around the half-hour mark, overturning an early goal from Daniel Fila for Venezia in the second minute.
However, Venezia, who needed a win to maintain their survival hopes, fought back when Ridgeciano Haps pulled a goal back nine minutes after half-time, temporarily moving Roma into the Champions League spot.
At that stage, Claudio Ranieri's Roma were already two goals ahead thanks to an 18th-minute penalty from Leandro Paredes and a header from Alexis Saelemaekers seven minutes after the break, giving the capital club's fans hope that Venezia might hold on.