The former Sporting Lisbon man had been linked with a move away from Old Trafford for much of the summer but those rumours have now been quashed with the announcement of a new deal.
With a year remaining on his contract, and the transfer deadline just passed, there did appear an obvious need to secure Nani's services for an additional amount of time in order to prevent him leaving for nothing in 12 months.
Yet the length of contract does indicate Moyes has faith in a player who has struggled to consistently hit the heights during his six years at the club.
United manager David Moyes was quoted by the club's Twitter feed as saying: "I'm really pleased Nani has re-signed for the next five years. He has great ability and experience and beyond his 26 years."
The Portuguese winger joined United in 2007 and has gone on to win four Premier League titles, two League Cups and the Champions League.