"Milan left the pitch following racist insults on the part of a minority of the Pro Patria fans directed at (Kevin-Prince) Boateng, (M'Baye Niang, (Urby) Emanuelson and (Sulley) Muntari," the club said on their website (www.acmilan.it).
A video posted on Youtube showed Boateng in possession near the penalty area when jeering was heard from fans nearby.
He stopped playing, collected the ball and kicked it towards the stands. He then took his shirt off and walked off the pitch and his team mates followed.
"I'm disappointed and saddened but I think that it was the right choice to not return to the pitch, out of respect to our players and all other coloured players in any other league," Milan coach Massimiliano Allegri told reporters.
"We have to stop these uncivilised gestures. Italy has to become a little more civilised and a little more intelligent.
"It's unfortunate because of the families and children who had come here to enjoy the beautiful day of sport and sun.
"We hope we have given a signal that will be followed if such acts occur again in any league. We apologise but we hope that these uncivilised acts will not happen again."
Captain Massimo Ambrosini said the jeering had started before the walkoff.
"We were annoyed from the beginning," he said. "We gave a strong signal, although we regret it because a few have spoiled it for everyone else."
Based in the town of Busto Arsizio, Pro Patria play in the fourth tier of Italian football.
AC Milan director Umberto Gandini said on Twitter: "Very proud of the Milan players who decided to walk off the pitch today for racist abuse from few idiots! No racism, no stupidity."
(Writing by Brian Homewood in Berne; Editing by Ed Osmond) firstname.lastname@example.org; +41 79 917 1402; Reuters Messaging: email@example.com (Created by Brian Homewood)
- Sports & Recreation