For over an hour, this looked on course to be a win for Ruud van Nistelrooy on his Old Trafford return, as well as a morale-boosting result to aid them in their Premier League survival fight.
The Foxes had battled well, were the better side in the first half and good value for their 1-0 goal lead as the game headed towards the final 20 minutes.
Even after Joshua Zirkzee’s equaliser their performance earned them the opportunity to take the game to extra time, but it was not to be with Harry Maguire’s stoppage-time winner, despite the defender appearing well offside.
But after a poor performance against Everton in their previous game, Leicester fans can take heart from this display and the battling qualities their players showed.
They will be needed as they look to pull themselves out of the Premier League relegation zone.