Zlatan Ibrahimovic has announced he is retiring from football aged 41.
Ibrahimovicv appeared emotional as he was serenaded by the Milan fans and then given a guard of honour by his teammates as he left the pitch.
The former Manchester United striker has spent most of the season on the sidelines due to an injury and played just four times for Milan, scoring once in a 3-1 defeat at Udinese in March, and his departure from the club had already been announced.
Last July he renewed his contract for another year despite facing the prospect of a lengthy rehabilitation from knee surgery.
Shortly after helping Milan win the Serie A title, he had undergone a planned procedure on his left knee to repair damage and instability caused by a previous anterior cruciate ligament injury.
It meant a lengthy lay-off, and Ibrahimovic did not make his first appearance of his season until the end of February.