Teenage substitute Brian Madjo earned Aston Villa a first win in eight games when he scored 54 seconds after coming on against Everton.
Madjo became Villa's youngest ever Premier League goalscorer at the age of 17 years and 324 days after producing a superb back-heel that flew past England keeper Jordan Pickford following a cross by Emiliano Buendia.
It completed a fine comeback win for Villa, who had been second best in the first half.
"He was working for six months and couldn't play," Villa boss Unai Emery told BBC Sport about his young match-winner.
"Now he's recovered and confident. How we scored is fantastic for him, [gives] confidence for us. Keep going."
Emery's side went into the game without a win in seven league and cup games and it looked set to be another frustrating night when Jake O'Brien headed Everton into an early lead.
The defender scored the fourth Premier League goal of his career after a goalkeeping error by Zion Suzuki, who flapped at a seventh-minute corner.
Villa, however, looked completely transformed after Joao Gomes levelled on the hour mark when the Brazil midfielder pounced after a poor headed clearance.
The game was heading for a draw before Madjo - who replaced Nicolas Jackson in the 74th minute - settled it by scoring his first Premier League goal less than a minute later.
"After a lot of draws how we won today is fantastic," added Emery.
"We are delighted with how the players responded. In the first half we were struggling. But those three points are very important for us to feel more confidence."