Daniel Sturridge's late header gave England a 1-0 win over Denmark after Kasper Schmeichel looked to have denied them victory at Wembley.
The Liverpool striker headed home Adam Lallana's inviting cross eight minutes from time to ensure England secured victory in their final game before Roy Hodgson names his provisional 30-man squad for the FIFA World Cup in Brazil.
Defeat was harsh on Leicester City goalkeeper Schmeichel, who produced a string of outstanding saves to keep the hosts out until Sturridge, who has 18 Premier League goals to his name this season, popped up with the winner.
Losses against Chile and Germany had put Hodgson at risk of becoming the only England boss to lose three consecutive home internationals, but the home side were not to be denied.
Denmark had their chances, but were ultimately unable to stretch their unbeaten run to six matches.
Glen Johnson won his 50th cap and was one of five Liverpool players in the England starting line-up, with captain Steven Gerrard, Raheem Sterling, Sturridge and Jordan Henderson making up the Anfield quintet.
Denmark were without key midfielder Christian Eriksen for their first game since long-serving coach Morten Olsen signed a new two-year contract.
Jack Wilshere's involvement looked like it may only last 13 minutes after he went down following a challenge from Denmark captain Daniel Agger, but the Arsenal midfielder was able to continue.
Casper Sloth was shown a yellow card four minutes later after he upended Gerrard as the midfielder charged towards the penalty area and the resulting free-kick was fired over by Wayne Rooney.
The lively Sturridge produced some lovely trickery before firing the ball across the face of the goal 32 minutes in as England continued to ask questions of the Denmark defence.
The visitors almost caught them out six minutes later, though, when Jakob Poulsen raced into the area and beat Joe Hart but Gary Cahill was on hand to clear.
Sterling somehow failed to convert the marauding Ashley Cole's inviting cross from point-blank range and then Schmeichel produced an outstanding save with his feet to deny Sturridge as Denmark weathered the storm late in the first half.
Teenage left-back Luke Shaw made his England debut as a half-time substitute to replace Cole, while Olsen brought on Kasper Kusk and Jesper Juelsgard at the break with Emil Larsen and Lars Jacobsen making way.
Juelsgard wasted no time in getting into the thick of the action as he whipped in a dangerous cross but Cahill was alert to the danger.
Gerrard had a shot deflected narrowly wide after 59 minutes, but it was not quite happening for England.
And they were indebted to Hart when the keeper raced out to narrow the angle and thwart Morten Rasmussen just three minutes after the striker had come on.
Danny Welbeck then brought another fine reflex save out of Schmeichel, who got down well to keep out a right-footed strike that looked bound for the net and the keeper denied the same player with a fine stop shortly after.
But Sturridge had the last laugh as he nodded home Lallana's fine left-footed cross to end England's five-month wait for a goal.
|Torres: I´d give my life to win La Liga with Atletico|
|Real target Ceballos focused on Betis - Mel|
|Platini can lead FIFA change - Fernandez|
|Mel: Betis won´t be signing Osvaldo|
|Ferrero defends Samp boss Zenga|
|Pochettino expects Spurs improvement|
|Bale ideal for United - Robson|
|Ferdinand: Di Maria will regret United failure|
|Benitez pleased with goalkeepers as De Gea transfer saga continues|
|Guardiola tips fit Schweinsteiger to shine|
|Confident Oxlade-Chamberlain hits back at Keane|
|Ferdinand: Stones would be ´a lunatic´ to join Chelsea|
|Qarabag v Celtic: Gordon wants positivity from Scottish champions|
|Higuain rejects extension from Napoli|
|Zamora returns to Brighton|
|West Ham can cope without Valencia - Gold|
|Wickham loses on Palace debut|
|Guardiola: No problem with Matthaus and Effenberg comments|
|Cartabia excited by Deportivo loan|
|Lyon confirm Rafael deal|
|Hysaj agrees deal to follow Sarri to Napoli|
|Rafael says his goodbyes to Manchester United|
|Dos Santos ready to get going with Galaxy|
|Pochettino rejects Soldado exit talk|
|Metatarsal misery for Mulumbu|
|Benitez: Benzema and Bale going nowhere|
|Mihajlovic: Ibrahimovic would make Milan title contenders|
|Hughes not taking any risks with Bojan|
|Guardiola relishing Audi Cup test|
|Di Maria ´taking a step up´ - Silva|
|Leicester bring in defender Benalouane|
|Deulofeu doubtful for Premier League opener|
|West Ham striker Valencia out for three months|
|UEFA: Qarabag-Celtic to go ahead|
|Palace seal Wickham swoop|
|Ronaldo and Benzema to miss Audi Cup|
|Marotta: Juventus could lose Pogba|
|Kante completes Leicester switch|
|Khedira ruled out for two months|
|FA accepts Mourinho criticism of Wembley surface|
|Robben rubbishes injury talk|
|Marchisio expects Milan title challenge|
|Rafael set for Lyon move|
|Celtic ´seeking reassurances´ over Qarabag pitch|
|Wenger beating Mourinho does not affect Chelsea - Zouma|
|Rooney moved by Everton welcome|
|Mancini not worried by lack of Inter goals|
|Coloccini wants to finish career at Newcastle - McClaren|
|Ramsey: Pressure to win trophies is nothing new|
|Terry: Wembley defeat could be a ´blessing in disguise´|
|Blatter not running for IOC re-election|
|Bendtner: Wolfsburg can challenge Bayern for Bundesliga honours|
|Liverpool relishing Britannia return, says Henderson|
|Everton big enough to keep Stones - Martinez|
|MLS Review: Fire stun Dallas as goals dry up|
|New Atletico signings excite Raul Garcia|
|Cahill expects Arsenal title challenge|
|Jovetic happy with Inter debut|
|Luis Enrique: Barca defence must improve|
|Yanev calls for calm after ugly scenes in friendly|
|Coppa Italia Review: Cittadella romp to victory, Brescia rely on penalties|
|Arsenal have learned how to play against big teams - Ramsey|
|Shawcross to visit specialist over back woe|
|Fiorentina 2 Barcelona 1: Bernardeschi double sends Barca to another defeat|
|Mancini hints at Melo interest|
|Rodgers hails ´incredible´ Benteke strike|
|Galatasary 1 Inter 0: Sneijder sinks former club|
|Wenger defends Arsenal approach|
|Wembley loss has no bearing on new season - Terry|
|Porto cruise to friendly win over Stoke|
|Mourinho denies Wenger ´snub´ suggestions|
|Arsenal abandoned their philosophy to win Community Shield - Mourinho|
|Mourinho throws Community Shield medal into Wembley crowd|
|Swindon Town 1 Liverpool 2: Benteke nets stunner on debut|
|Scottish Premiership Review: Hearts win thriller on top-flight return|
|Ujah at the double as Bremen beat West Ham|
|Mourinho: We were the better team|
|Wenger hails defensive solidity|
|Rooney returns as Villarreal spoil Ferguson´s party|
|Rodriguez stunner earns Southampton draw as Caulker makes debut|
|Arsenal 1 Chelsea 0: Case of 14th time lucky for Wenger against Mourinho|
|Taechaubol announces Milan agreement|
|Jojic fires Cologne to latest victory|
|China 0 South Korea 2: Kim and Lee seal victory|
|Origi getting up to speed|
|Costa a doubt for start of season - Mourinho|
|North Korea 2 Japan 1: Halilhodzic´s men spurn lead|
|Allam brands FA ´amateurs´ as name-change row rumbles on|
|Fournier ´worried´ by Lyon pre-season|
|Swansea still working on Michu exit - Monk|
|Neuer furious at Bayern Supercup defeat|
|Wenger: Ozil signing not a mistake|
|UEFA Champions League Preview: Shakhtar ready for Fenerbahce decider|
|Lampard targets MLS play-offs for City|
|MLS Review: Goals galore as DC United win 10-goal thriller|
|Ronaldinho returns and helps Fluminense to win|
|Keane: United won´t overtake Chelsea|
|Casillas has the ´enthusiasm of a 20-year-old´ - Lopetegui|
|Blanc hopeful over Ibrahimovic knee injury|
|Guardiola laments late goal in Supercup defeat|
|Tuchel plans to keep Bender|
|Hecking happy with Wolfsburg discipline after Supercup win|
|Arsenal players too interested in selfies and six-packs - Keane|
|Confusion over Ibrahimovic´s PSG future|