The Italian Serie A match between AC Milan and Sampdoria ended in a 5-1 victory for Milan thanks to a hat-trick from Olivier Giroud, giving Stefano Pioli’s team the much-needed confidence boost.
In the ninth minute, Rafael Leao gave AC Milan the lead before Sampdoria scored to tie the score.
But the recently floundering AC Milan won handily because to three goals from Giroud and one from Brahim Diaz.
With 64 points, they are still in fifth place and have temporarily closed the distance with Lazio, who are in fourth place, to one point before Maurizio Sarri’s team travels to Udinese on Sunday.
AC Milan was knocked out of 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 travels 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 the 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.