David de Gea has put an end to speculation over his Manchester United career after signing a four-year contract extension, with the option of a further 12 months.
The Spain international had been on the verge of a move to Real Madrid on transfer deadline day last week, only for the deal to collapse in the final minutes.
Speculation was then rife that Madrid would return for the goalkeeper in January, only for Los Blancos president Florentino Perez to rule out that possibility, although De Gea has since rubber-stamped his intentions of agreeing to the new deal at Old Trafford.
"I am delighted to be starting this new chapter in my United career. I have always enjoyed playing with these great players in front of our fantastic fans," De Gea told his club's official website.
"Manchester United is a special club and Old Trafford is an ideal place for me to continue to develop my career. I'm looking forward to putting a difficult summer behind me and concentrating on working hard to improve and help my team-mates to be successful."
United boss Louis van Gaal added: "I am absolutely delighted David has signed a new contract. He is one of the best goalkeepers in world football.
"I am very pleased that he will be part of the team for many years to come. David made a very important contribution to our performance last season and he has been the club's Player of the Year for the last two seasons.
"He is a popular player who is keen to learn and enhance his game. At such a young age for a goalkeeper, he has many years ahead of him."