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.
|UEFA Champions League Review: Steaua ease through as Legia Warsaw hit five|
|Youngsters inspire Sunderland to win at Hartlepool|
|Aluko and Sagbo net as Hull City beat York|
|PSG loan Aurier from Toulouse|
|Emotional Davies thanks Swansea fans|
|Mandzukic makes debut as Atletico win|
|Filipe makes bow in Chelsea draw|
|Bahebeck stars again as PSG beat Nice|
|Conte rubbishes PSG talk|
|Tottenham sign Davies and Vorm as Sigurdsson joins Swansea|
|De Laurentiis vows Napoli will fight for Scudetto|
|Lyon sign Jallet from PSG|
|Rijeka deny racism allegations|
|Suarez has been treated ´like a murderer´, says Aspas|
|Basel secure Samuel swoop|
|Thai Premier League Review: Buriram go top as Muang Thong slip up|
|Dnipro-Copenhagen clash moved to Kiev|
|Tevez never considered Juve exit|
|Djuricic joins Mainz on loan|
|Cavani keen on PSG stay|
|Shaqiri flattered by Juventus link|
|Johnson, Sommer arrive at Monchengladbach|
|J.League Review: Kawasaki close gap on Sagan, Urawa move clear at top|
|Coleman to miss Everton´s Thailand trip|
|Thankful Rueda bids farewell to Ecuador|
|Liga MX Preview: Peralta set for home debut, Leon seek recovery|
|K.League Review: Top two draw blanks, Jeju United close in|
|CAF Champions League Preview: Zamalek primed for crucial game, CS Sfaxien meet ES Tunis|
|Low quashes Germany exit rumours|
|Getafe agree Michel loan|
|Porto bring in Brahimi from Granada|
|Pardew satisfied with attacking signings|
|Pellegrini targets further City signings|
|Sevilla complete Krychowiak deal|
|Eisfeld makes Fulham move|
|Zarate opens account as West Ham stumble|
|I have nothing to prove, says Ince|
|Barcelona seal Mathieu deal|
|United prepared to spend big, claims Woodward|
|Shakhtar to play in Lviv|
|Pereyra poised for Juve switch|
|Fabregas eyes trophies at Chelsea|
|Vorm confirms Tottenham transfer|
|Deila: Forster will leave Celtic eventually|
|No pressure for Shaw|
|Van Gaal happy with preparations|
|Diarra aiming for Bordeaux return after West Ham frustration|
|Last season for Montpellier owner Nicollin|
|Monaco: Rodriguez deal too good to ignore|
|Nacional Asuncion 2 Defensor Sporting 0: Hosts surge towards Libertadores final|
|Garcia eyeing Serie A title|
|Father against Vlasic´s move abroad|
|Rodgers welcomes Gerrard´s international retirement|
|Cruzeiro, Atletico Mineiro bid for Robinho|
|Inzaghi not drawn into Balotelli speculation|
|Dunga ´not going to sell a dream´|
|City´s Fofana allegedly racially abused|
|Carroll ruled out of NZ friendlies|
|Rodgers excited by new arrivals|
|Zeljeznicar 2 Metalurg Skopje 2 (agg 2-2): Visitors advance on away goals|
|Gibson returns as Tranmere hold Everton|
|UEFA Champions League Review: Celtic coast through, BATE given scare|
|Gomez and Jones feature in Sunderland win|
|Leicester hit Ilkeston for six|
|Austin fires QPR to narrow victory|
|Guardiola: No trophies and I may be sacked|
|Dortmund held as Immobile makes debut|
|Rodriguez´s dream becomes Real|
|Garcia: Benatia and Ljajic going nowhere|
|Stoke secure Bojan on four-year deal|
|FA: No World Cup bids for England|
|Kroos commits to Bremen|
|Caulker makes QPR move|
|Forest agree Hunt loan deal with Palace|
|Bartra ready to prove himself at Barca|
|Southampton looking to sell Osvaldo|
|Marveaux loaned to Guingamp|
|Mourinho eyes success on two fronts|
|Sammer encouraged by Lewandowski start|
|PSG punished for abuse of Chelsea fans|
|Dunga unveiled as Brazil coach|
|Shakhtar CEO: Focus is on players´ safety|
|Foster agrees new West Brom deal|
|Real Madrid sign Rodriguez|
|Mustafi eyes Bundesliga switch|
|Klopp laughs off Hummels, Reus speculation|
|Campana makes Sampdoria switch|
|Leicester seal Ulloa deal|
|Morata sidelined for seven weeks with knee injury|
|Riviere on target in comfortable Newcastle win|
|Advocaat set for Serbia role|
|Wisdom joins West Brom on loan|
|Bundesliga to consider vanishing foam|
|Five-man shortlist for Ivory Coast|
|´Personal issues´ keep Gervinho away from Roma tour|
|Jedinak raring to go|
|Borini set for Liverpool stay, claims agent|
|Koeman: No bids for Lovren|
|Livermore: England hopes shouldn´t hinge on club side|
|MLS Preview: Tough tests for Conference leaders, Revolution still struggling|
|Mathieu not Barca material, says Marquez|
|West Brom claim unimpressive win in Sacramento|
|Neymar: Brazil behind Germany, Spain|
|Vietnamese police confirm match-fixing players|
|Lucescu blames Joorabchian for AWOL players|
|Robinho undecided on future|
|Rush: Still years left in Gerrard|
|Tiago re-signs with Atletico|
|Puyol against Spain overhaul|
|Agger considering his Liverpool future|
|Peruvian Primera Division Review: Juan Aurich bounce back, Melgar draw with Inti Gas|
|Bayern deny interest in Cuadrado|