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-foot 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.
|Coach: R. Hodgson|
for A. Cole 46'
for J. Wilshere 59'
for W. Rooney 60'
for J. Henderson 77'
for R. Sterling 86'
for D. Sturridge 87'
for L. Jacobsen 46'
for E. Larsen 46'
for S. Kjær 62'
for C. Sloth 62'
for N. Bendtner 63'
for J. Poulsen 81'
|O´Neill delighted with second-half display|
|First-half dominance pleases Deschamps|
|Muller criticises Germany profligacy|
|Euro 2016 Qualifying Review: Portugal go top, Gibraltar make history in defeat|
|Liverpool the only English club I could play for - Suarez|
|France 2 Denmark 0: Lacazette off the mark in routine victory|
|Republic of Ireland 1 Poland 1: Long rescues vital point|
|Portugal 2 Serbia 1: Coentrao puts hosts top of Group I|
|Strachan hails ´terrific´ Gibraltar|
|Lafferty back playing with a smile on his face - O´Neill|
|Toure to reveal Ivory Coast future over coming days|
|Georgia 0 Germany 2: Reus and Muller on target for world champions|
|Northern Ireland 2 Finland 1: Lafferty inspires fourth qualifying success|
|Scotland 6 Gibraltar 1: Casciaro´s historic moment outshone by Fletcher´s hat-trick|
|France 2-0 Denmark: Lacazette and Giroud on target|
|Firmino hopeful of Copa America spot|
|Hummels considering options at Dortmund|
|Suarez goalless on Anfield return, but Balotelli nets stunner|
|Casciaro scores first competitive goal for Gibraltar|
|Fleetwood Town 1 Preston North End 1: Ball stunner claims share of derby spoils|
|Italy v England: Judge me on results, says Conte|
|Colombia v Kuwait: Falcao seeking another strong showing|
|Brazil 1 Chile 0: Firmino settles scrappy affair|
|Luxembourg v Turkey: Let´s kick on, urges Terim|
|South Africa 1 Nigeria 1: Zungu strikes late to earn draw|
|Smalling wants long-term United stay|
|South Africa 1-1 Nigeria: Last-gasp Zungu goal cancels out Musa strike|
|Italy call up Santon and Abate for England friendly|
|Switzerland v United States: Klinsmann eyes learning curve|
|Netherlands v Spain: Hiddink has players´ support, says Wijnaldum|
|A-League Review: Sydney end Wellington run, Adelaide suffer injury blows in Jets win|
|Henderson eyes long-term Liverpool future|
|I have nothing to prove - Bale|
|Brazil 1-0 Chile: Firmino gives Selecao battling victory|
|South Korea v New Zealand: All Whites looking to future|
|Japan v Uzbekistan: Hosts eye another win under Halilhodzic|
|MLS Review: Kaka nets in Orlando draw|
|Mexico 1 Ecuador 0: Hernandez, Corona help Herrera´s men to victory|
|Deschamps calls for France response|
|Dunga unfazed by pressure|
|Montenegro fan turns himself in after flare incident|
|Injured Messi not ready - Martino|
|Hodgson: Rooney not close to Charlton|
|Terim proud of Turkey|
|Hiddink happy with point|
|Euro 2016 Qualifying Review: Netherlands and Italy stage late escapes|
|Debutant Eder delighted with Azzurri bow|
|Argentina 2 El Salvador 0: Mancuello nets debut goal in straightforward win|
|Kovac not satisfied despite Croatia victory|
|Netherlands 1 Turkey 1: Huntelaar spares Hiddink from historic home loss|
|Ghana 1 Senegal 2: Konate brace downs Black Stars|
|Bulgaria 2 Italy 2: Controversial debutant Eder rescues Conte´s men|
|Morocco 0 Uruguay 1: Cavani spot-kick seals win|
|Al Sadd say talks with Xavi ongoing|
|McClean slams Sunderland´s handling of poppy controversy|
|Ghana 1-2 Senegal: Black Stars continue Afcon hangover|
|Cheltenham player diagnosed with cancer|
|Palace takeover talk premature - Parish|
|Odegaard becomes Euro qualifiers´ youngest starter|
|Job not done yet, Bale warns Wales|
|Israel 0 Wales 3: Brilliant Bale bags brace as Wales go top|
|Dunga backs Neymar to overhaul Pele´s Brazil goal record|
|League Two Review: Hartlepool climb out of drop zone, Cheltenham go bottom|
|El Salvador 0-2 Argentina: Martino's men triumph without Messi|
|League One Review: Canavan leaves it late to deny County|
|Freddy Adu signs with 11th team in as many years|
|Besiktas deny Cech, Danny rumours|
|Puerto Rico v Canada: Haber targets more momentum|
|Miranda not contemplating Atletico exit|
|Austin relaxed over England prospects|
|Manchester United should sign Ibrahimovic - Schmeichel|
|Ibe eyes Liverpool run-in|
|Bertrand called up by England as withdrawal of four players confirmed|
|A-League Review: Risdon nets stunner, Germano tames Roar|
|Panama v Costa Rica: Unbeaten run a secondary concern for Wanchope|
|Italy coach Conte shaken after death threats - FIGC chief|
|Barca fears over Alba eased|
|Schweinsteiger to start Germany qualifier|
|Akinfeev thanks fans after flare incident|
|Injuries offer Kane chance of first England start|
|Russian Football Union to protest following Montenegro abandonment|
|October comeback the target for injured Foster|
|Van der Vaart looks set to leave Hamburg|
|Bale focused on Wales - Coleman|
|Kluivert helps Curacao to victory|
|Hamstrung Alba returns to Barcelona|
|Macedonia v Australia: Confident visitors eye victory|
|Akinfeev to return to Moscow with Russia squad|
|Brnovic: Montenegro have no chance of qualifying|
|Russia had to resume after Akinfeev incident - Capello|
|Terim: Robben absence important|
|Brazil - Chile Preview: Winning is 'our only option' - Dunga|
|France - Denmark Preview: Olsen hits out at 'disrespectful' hosts|
|Morata keen to keep working|
|Canada 1 Guatemala 0: Haber heads Floro´s men to win|
|Difficult to find a place for Kane in starting XI - Hodgson|
|Difficult to find a place for Kane in starting XI - Hodgson|