Steven Bergwijn scored his first goal of the season and provided an assist to help Tottenham continue their momentum under Antonio Conte by beating West Ham to reach the Carabao Cup semi-finals.
The Netherlands forward broke the deadlock after 29 minutes and it was the catalyst for three goals in five minutes with Jarrod Bowen's equaliser quickly countered by Lucas Moura putting Spurs 2-1 ahead which is how it finished.
Victory helps Tottenham take another step towards ending their trophy drought dating back to 2008 and made it five wins under their new boss.
The visitors were without top goalscorer Michail Antonio due to a positive Covid-19 test while Spurs reverted to their usual 3-4-3 formation under Conte, who made six changes from Sunday’s draw with Liverpool.
Bergwijn was one of those recalled for a first start in nearly two months and his rustiness was clear early on but his fellow forwards combined after 12 minutes for the opening chance.
Moura turned by the halfway line and sent Harry Kane away but his left-footed shot was well saved by West Ham’s second-choice goalkeeper Alphonse Areola.
Spurs had gone with captain Hugo Lloris between the posts and he was forced to parry away a Bowen free-kick soon after before the opener did arrive to spring the London derby into life.
Pierre-Emile Hojbjerg was the creator with a smart pass into Bergwijn, which he received back inside the area and then returned the favour to allow the Dutch international to tap home in the 29th minute.
It was Bergwijn’s first goal of the campaign and sparked a crazy five-minute spell with Tomas Soucek testing Lloris on two occasions and bringing out the best of the Frenchman who produced a couple of wonderful finger-tip saves in quick succession.
The Tottenham captain was helpless moments later though when Bowen did level after 32 minutes.
Eric Dier was initially at fault with a slack ball out from the back and, after Manuel Lanzini’s shot was controlled by Bowen, the ex-Hull attacker turned impressively before he rifled into the bottom corner for his fifth goal of the season.
Yet Moura had the final say on the half when Bergwijn, now full of confidence, skipped past Lanzini and squared for his fellow forward to stroke home from close range.
Spurs had needed a timely Oliver Skipp clearance to thwart Soucek once more before the break and Moyes’ side continued to ask questions after the restart.
Goalscorer Bowen was proving a constant thorn in the home defence and peeled off Dier to control an excellent ball over the top from Lanzini but Lloris raced out to get a crucial touch.
Conte had seen enough and turned to his bench on the hour mark. Harry Winks and Son Heung-min were introduced and he also reverted to Sunday’s formation of three in midfield in an attempt to wrestle back some control.
West Ham had plenty of ammunition too and Moyes called for Pablo Fornals and Said Benrahma with 22 minutes left. The latter almost made a difference within 60 seconds.
Hammers youngster Harrison Ashby crossed in for Benrahma, who controlled on the turn and let fly but saw his shot balloon over.
The substitute had two further efforts before full-time, including a superb volley that went just wide, but Spurs held firm to reach the semi-finals of this competition for the third time in four years.