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.
|Messi the best of all time, says Jovetic|
|You can define an era - Buffon wishes Donnarumma happy birthday|
|Clement: Llorente wants to star against Chelsea|
|Koeman not interested in Everton renewal amid Barca links|
|Rivals scared of Ibrahimovic, says United team-mate Herrera|
|Schmeichel pays tribute to Ranieri|
|Yaya Toure wants to play with Neymar and Coutinho|
|Mourinho: It´s more difficult to win now|
|I didn´t sleep for six days – Conte motivated by last-gasp title loss|
|It all depends on success - Klopp knows trophies are a must|
|Barkley targets finishing above Liverpool|
|Championship Review: Birmingham ease pressure on Zola with derby win|
|Mourinho could start Rooney in EFL Cup final|
|Comeback kid Le Bihan moves Nice level with Monaco|
|Leicester job an amazing opportunity - Rowett pitches to replace Ranieri|
|Deschamps free to pick Benzema, Le Graet reveals|
|Valencia request new time for Barcelona fixture|
|Rabona-fide brilliance! Watch Kovacic´s marvellous strike in Real Madrid training|
|Hull´s Silva cools Hernandez CSL rumours|
|Frustrated Allardyce accepts Palace players are struggling|
|Sampaoli tells Sevilla to learn from Real Madrid errors in ´most important game of the year´|
|Raiola ready to cut off Balotelli´s tongue after latest red card|
|My dream died after Leicester sack - Ranieri|
|Schalke sign Bentaleb from Tottenham|
|Puel welcomes Mkhitaryan´s EFL Cup final absence|
|Arsenal chairman concedes Gunners are playing for pride against Bayern|
|Melbourne City 1 Sydney FC 3: Bobo double helps leaders back to winning ways|
|Kohler refuses to write off Gotze|
|Ranieri will be remembered in 2,000 years, says Mancini|
|You don´t owe anyone - Henry tells Rooney to make China move if it makes him happy|
|I was not an Italian spy! - No ulterior motive for Conte in Eddie Jones meeting|
|Inter coach Pioli expects tight Roma clash|
|Mourinho: Leicester should name stadium after Ranieri|
|Conte: Ancelotti the best Italian coach in the world|
|Carrick in, Mkhitaryan out for Manchester United in EFL Cup final|
|Klopp compares Ranieri sacking to Trump, Brexit triumphs|
|Ranieri did not lose Leicester dressing room, insists Shakespeare|
|Conte willing to risk sack to lead Chelsea to Premier League glory|
|Disapponting for managers around the world - Premier League bosses react to Ranieri sacking|
|Ribery ready for Bayern Munich comeback|
|Celtic fined for Manchester City crowd trouble|
|Vardy´s goal decline and Mahrez´s assist struggles: The Opta stats behind Ranieri´s Leicester demise|
|Bayern boss Ancelotti vows never to repeat middle finger gesture|
|Medel urges Sanchez to quit Arsenal for Inter|
|Europa League draw: Manchester United to play Rostov, Lyon v Roma|
|Aubameyang dry spell worries me - Tuchel|
|Varane a doubt for Napoli as Real Madrid confirm muscle injury|
|Leicester job favourite Mancini: I am sorry for my friend Ranieri|
|Allegri welcomes back Bonucci following apology|
|Montella targets lengthy AC Milan stay|
|Lineker cries after Ranieri is sacked|
|Ranieri sacking ´the biggest shock in a decade´|
|Wenger ´witch-hunt´ has gone too far, says Bilic|
|Lewandowski better than Benzema, Suarez, Costa - Matthaus|
|Sticks and Stones may break my bones - Man City defender unhurt by criticism|
|Atletico Madrid v Barcelona: Simeone´s men primed to land on punch-drunk Barca|
|Pogba no machine like Messi or Ronaldo, says Mata|
|Oxlade-Chamberlain adamant Arsenal ´more than capable of competing for title´|
|Monaco star Falcao was almost lost to baseball|
|FC Dallas 4 Arabe Unido 0: Champions League semis beckon for Americans|
|No gratitude in football - Spalletti saddened by Ranieri sacking|
|Alli not to blame for Tottenham´s Europa League exit - Pochettino|
|Mourinho pays tribute to axed Leicester boss Ranieri|
|Europa League Review: Spurs crash out, Stindl stuns Fiorentina, Lyon destroy AZ in record-equalling|
|Bastia punished over Balotelli abuse|
|Eriksen blames Tottenham´s shock Europa League exit on poor finishing|
|Ranieri sacking a brutal reminder of football´s necessary lack of sentiment|
|Tottenham 2 Gent 2 (2-3 agg): Alli sent off as Kane own goal sends Spurs out|
|Jokanovic signs new Fulham deal|
|Serie A top three setting ´incredible´ pace, says Eder|
|Ranieri sacked by Leicester City|
|Coutinho: Klopp lets us do whatever we want|
|Lampard to be honoured with Chelsea tribute|
|Bolasie set for second knee surgery|
|Rooney rejects Chinese fortune to stay at United|
|Falcao has silenced his critics - Jardim|
|Clement backs Mawson to shackle Chelsea stars ahead of ´special´ Stamford Bridge return|
|Happiness more important than money - Bacca rejects new China approach|
|Lewandowski the perfect number nine, says Jancker|
|Digne tips PSG for fifth consecutive Ligue 1 title|
|Cedric thinks Euro 2016 final will help against Manchester United|
|Infantino praises progress on Qatar 2022 worker conditions|
|Manchester United have strength in depth to win quadruple, says Young|
|Ibrahimovic on PSG´s Barca victory: Win or lose, they talk about me|
|Robbery, Thiago irreplaceable at Bayern - Matthaus|
|Griezmann will ´definitely´ join Manchester United, claims Petit|
|Manchester United selling Rooney now would be odd - Neville|
|Rooney named China´s fifth most popular player, Ronaldo on top|
|Payet always loved Marseille - Digne|
|Arsenal midfielder Cazorla set to miss rest of season|
|Alba wants Isco at Barcelona|
|Bilic worried injuries will derail Carroll´s England hopes|
|Aguero ability was never in doubt for Fernandinho|
|Nani thigh injury tempers Valencia´s Real Madrid joy|
|Matip confident Liverpool will make top four|
|Rooney still has the quality to play in Europe, says Bilic|
|Koscielny wants Wenger to stay at Arsenal|
|Pogba record will soon be broken - Kahn|
|Ramos hurting but calm after Real Madrid´s Valencia setback|
|De Boer would love to manage in the Premier League|
|Wenger criticism is impossible - Nasri defends embattled Arsenal boss|
|It´s good to talk - Sagna urges better communication from Manchester City defence|
|CONCACAF Champions League Review: Vargas scores as Tigres UANL are held|
|Jovetic: We were much better than Leicester|
|Victory star Berisha set to debut for Kosovo|
|Pjaca keen for more chances after first Juve goal|
|Allegri hails ´champion´ Alves|
|´Going to China? Madness´ – Keane urges Rooney to stay in Europe|
|Nuno rues Telles red as Porto retain hope|
|Socceroos to host Brazil in Melbourne|
|Sampaoli rues Schmeichel heroics|
|Sevilla president unimpressed by ´unjust´ winning margin|
|Allegri praises Pjaca for attitude change|