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'
|Lucescu defends Fred selection amid doping allegations|
|Fabregas still in love with Arsenal|
|Luis Enrique ´happy´ with Barca´s US trip|
|Mourinho optimistic over Cahill and Costa|
|River owe Tigres´ Esqueda - Mercado|
|Begovic keen to challenge Courtois|
|Van Gaal expecting big season from Shaw|
|Mourinho launches attack on Benitez|
|CONMEBOL ´knocked on a lot of doors´ to keep half-spot - president|
|America 0 Benfica 0 (3-4 on penalties): Primeira Liga champions finally win|
|Napoli striker Higuain ´untouchable´ - Gabbiadini|
|Arsenal´s friendly form will boost confidence - Wenger|
|Nagatomo-Melo swap possible, says agent|
|Chelsea 2 Barcelona 2 (4-2 on penalties): Courtois stars for Premier League champions|
|Eriksen calls for ruthless Spurs|
|Pulis praises Berahino attitude|
|Alderweireld confident of top-four finish|
|Villa ready for tough Spurs clash|
|West Ham edge win on Carrow Road anniversary|
|Kozak scores twice as Villa draw at Wolves|
|Stanislas brace leads Bournemouth past Yeovil|
|Watford slip to friendly defeat at Cardiff|
|Lukaku injury sours Everton win at Dundee|
|UEFA Champions League Review: Fenerbahce draw blank as Monaco impress|
|West Brom earn friendly win over Walsall|
|Vardy at the double as Leicester beat Burton|
|Atletico impress in win over Oviedo|
|Herrera sacked by Mexico after ´punch´|
|Gerrard, Keane and Bradley pull out of MLS All-Star squad|
|Marseille reach Diaby agreement|
|Sammer thrilled with Vidal´s winning mentality|
|Platini expected to launch FIFA presidency bid|
|Romanov sacked me over Barca snub - Korobochka|
|Villa complete Crespo capture|
|Wolfsberger v Borussia Dortmund: Bender praises ´fun but exhausting´ training|
|Okaka swaps Sampdoria for Anderlecht|
|Southampton v Vitesse: Fonte excited for ´dream´ sojourn into Europe|
|Bournemouth agree King compensation|
|West Ham v Astra: Kouyate confident West Ham can progress|
|Vidal completes Bayern switch, signs four-year deal|
|Fabregas calls for Champions League improvement|
|BREAKING NEWS: Filipe Luis completes Atletico return|
|Bayern to present Vidal|
|Wenger unfazed by Mourinho´s spending jibe|
|Pellegrini: Sterling will justify price tag|
|Cavani hit with two-match Uruguay ban|
|Bonucci to remain at Juve until 2020|
|No bids for Berahino - West Brom|
|Putin: Blatter deserves a Nobel prize|
|Howe: Swansea a benchmark for Bournemouth|
|New Parma to play in Serie D|
|Mata vows to hit the goal trail at United|
|Drogba ´perfect fit´ for Montreal|
|Berahino ´not yet´ ready for Tottenham - Irvine|
|Romero lauds caring Van Gaal|
|Jese flying at Real under Rafa|
|Sampdoria unwilling to pay €10m for Balotelli|
|Mourinho talks up Arsenal title chances|
|Hull sign Ryan Taylor, Sam Clucas|
|Kane, Pochettino hail MLS All-Star test|
|Di Santo sorry for swift Werder departure|
|Mourinho tells Ronaldo: Team honours come first|
|Khedira returns to Juve training|
|Celtic v Qarabag: Champions League return of utmost importance, says Collins|
|Pellegrini: Jovetic had to go|
|Manquillo completes Marseille move|
|Schalke reject Juve´s Draxler bid|
|Blanc: Di Maria deal ´close´|
|Di Santo debut ends in stalemate|
|Fire sign Drogba, trade him to Montreal Impact|
|FIFA and UEFA welcome ruling on third-party ownership|
|Juve kick off title defence against Udinese|
|Stoke sign free agent Afellay|
|Benitez confident Ramos will stay|
|Fenerbahce issue warning to fans|
|UEFA Champions League Preview: De Boer confident Ajax are ready for Vienna test|
|Bility: I am the favourite for FIFA presidency|
|Pienaar to miss start of season|
|Vietnam 1 Manchester City 8: Sterling shines as tourists run riot|
|All-Star Keane relishing Spurs clash|
|Shaun Wright-Phillips joins brother Bradley at Red Bulls|
|Inter 0 Real Madrid 3: Rodriguez stunner caps comfortable win|
|Villa sign Ayew|
|Watford complete Berghuis transfer|
|Robben returns to Bayern training|
|Pulis anxious to make West Brom additions|
|David Luiz eager to welcome ´fantastic´ Di Maria|
|Fernando injury free ahead of new campaign|
|Hummels blames weight issues for poor season|
|Defoe hoping for early Sunderland goals|
|Depay hints at identity of ´surprise´ United striker|
|Tigres UANL v River Plate: Hosts look to bounce back and make history|
|Crespo set for Villa move|
|Terry: I would never join a Premier League rival|
|Van Gaal coy on United future|
|Romero to cover potential De Gea exit - Van Gaal|
|Uruguay win men´s football gold at Pan Am Games|
|Pirlo thanks New York City fans for ´beautiful´ welcome|
|Mexico capitalised on ´the mistakes we made´ - Schafer|
|Herrera delighted with Mexico display|
|MLS Review: Whitecaps build happy home, Pirlo debuts|
|Guardado wins Golden Ball at Gold Cup|
|NZF confirms Olympics disqualification appeal|
|Jamaica 1 Mexico 3: CONCACAF giants complete form turnaround|
|New York Red Bulls 2 Benfica 1: Another scalp for MLS side|
|Romero signs with United|
|Moghreb Tetouan 1 Al Hilal Omdurman 1: Visitors go top|
|Van Gaal rules out Ronaldo bid|