Milan are experiencing some resurrection after slumping 0-3 on aggregate to neighbouring Inter Milan in the Champions League semi-final.
An Olivier Giroud hat-trick helped them demolish already-relegated Sampdoria 5-1 in the Italian Serie A on Saturday, earning Stefano Pioli’s side a much-needed morale boost.
Rafael Leao put AC Milan ahead in the ninth minute before Sampdoria found an equaliser.
But three goals from Giroud and a Brahim Diaz strike sealed a convincing win for the recently-stumbling AC Milan.
They remain fifth on 64 points and have provisionally cut the gap with fourth-placed Lazio to one point before Maurizio Sarri’s men travel to Udinese on Sunday.
AC Milan were knocked out in the UEFA Champions League earlier this week by Inter Milan in the semi-finals.
That was after falling to a shock 2-0 Serie A loss by lowly Spezia last weekend.
Now, they displayed a confidence they lately lacked.
“It was good to let go of the disappointment suffered with the elimination from the Champions League,” Pioli told reporters.
“We played a good match, scoring many goals. It can only do us good.”
Leao gave AC Milan an early lead at the San Siro when he beat Sampdoria goalkeeper Nicola Ravaglia with a precise low shot into the bottom right corner.
But Sampdoria managed to level shortly after through forward Fabio Quagliarella, who ended his longest run without a goal in Serie A.
This was after he had failed to find the net in his previous 20 games.
AC Milan, however, responded immediately when Giroud ended a six-game goal drought in the league by heading in to restore the lead.
The Frenchman made it 3-1 from the penalty kick spot in the 29th minute after Sampdoria defender Koray Guenter took down Leao inside the box.
AC Milan kept the pressure on after the break as they sought to increase the lead.
Giroud was close to completing a hat-trick but Ravaglia showed great reflexes when he saved his close-range header.
Diaz added a goal to his two assists on the night, helped by a stunning cross by Tonali in the 63rd minute.
Giroud completed his hat-trick soon after.
Bottom-placed Sampdoria are on course to finish bottom of Serie A for the first time in their history.
AC Milan travel to Juventus on May 28 before they end the season with a home game against lowly Hellas Verona the following weekend.
In earlier games, Bologna hammered Cremonese 5-1 to leave the second-bottom side on 24 points and on brink of relegation.
Atalanta came from a goal down to beat Hellas Verona 3-1 and move up one place to sixth, two points ahead of seventh-placed AS Roma.