Allardyce's position at Upton Park has been the subject of speculation despite the London club's relative success this term, but the 58-year-old has quashed any rumours of an impending departure, with the club's joint-chairman David Gold announcing the agreement via Twitter.

"I am delighted to announce that our manager Sam Allardyce has signed a new two year contract," Gold posted on his account.

Paolo Di Canio's departure from League One Swindon Town had led to suggestions the Italian would replace Allardyce at the end of the season. 

However, Di Canio's move to Sunderland back in March quelled any notion of that appointment taking place and Allardyce stressed the delay in his decision to renew his contract was caused by legal complications.

He added: "There were processes we had to go through and put it together in the right way, which it has now. I never thought there would be any problem - and there hasn't."

Allardyce joined West Ham in 2011, guiding them to promotion from the Championship at the first attempt,despite criticisms surrounding his tactical style, and has since led them to 10th place in the Premier League with two games remaining, ensuring that they will be playing in the top division next campaign.