Milan clinched the third automatic Champions League place in Italy after winning 2-0 at fourth-placed Fiorentina on the last day of the Serie A season.
Brazilians Kaka and Alexandre Pato netted in the second half in Paolo Maldini's last game before retirement and possibly the final match in charge for Carlo Ancelotti, who has been linked with Premier League Chelsea.
Torino joined Reggina and Lecce in being relegated after they lost 3-2 at AS Roma, meaning Bologna were safe irrespective of their 3-1 win over Catania.
Inter's Zlatan Ibrahimovic ended up as Serie A's top scorer with 25 goals after netting twice as the champions won 4-3 win at home to Atalanta.