Substitute Ayoze Perez scored three minutes into stoppage time as Newcastle came from behind to beat Tottenham and move out of the relegation zone.
Magpies keeper Rob Elliot frustrated Spurs with two fine saves to deny Erik Lamela before Eric Dier struck.
Dier was unmarked when he glanced home Christian Eriksen's corner.
Newcastle levelled when substitute Aleksandar Mitrovic tapped home after a scramble inside the six-yard box before Perez struck deep into stoppage time.
Relive all the action from White Hart Lane
Newcastle's third win in five games lifts them three places to 15th, Norwich City dropping into the relegation zone.
Tottenham, who would have climbed above Manchester United into fourth spot with victory, are now without a league win in three games.