Manchester United have been sweating on David de Gea's future for some time.

De Gea has emerged into one of the best goalkeepers in the world since signing for the club way back in 2011.

The Spaniard was stalling on signing a new contract with the club.

United had to activate a clause in the summer which extended his deal for a further year.

His contract was set to run out next summer and he was reportedly drawing interest from a number of European giants, including Paris Saint-Germain.

Ole Gunnar Solskjaer said in his press conference on Friday that he was confident he would sign a new deal.

"I want David to stay here," Solskjaer said, per the Mirror. "He knows that and he's the best goalkeeper in the world, we've seen that over the years and I hope I can make sure he'll finish his career at Man United at the highest level.

"And there have been loads of talks, lots of discussions between David and the club and hopefully we can get it done."

He added, per the BBC: "I am pretty confident we will get this sorted.

"David has never, ever said to me anything other than he loves the club, has had a fantastic time and wants to stay. So let's just hope we get it over the line."

And now Manchester United have announced that De Gea has signed a new four-year deal with the club.

According to the Mirror, De Gea will now earn a basic wage of £250,000-a-week, rising to £350,000-a-week with performance-related clauses.

That's a major boost for United in what is a troubling time for the club.

United are struggling at the moment, having won just two of their opening five Premier League games to kickstart the season.

They need to retain their best players to have any chance of getting back into title contention and that's exactly what they've done by tying down De Gea to a new deal.