Substitute Mario Mandzukic scored twice as Bayern Munich beat Hertha Berlin 3-2 to extend their unbeaten run to 35 Bundesliga games.
Adrian Lopez gave Hertha an early lead, but Mandzukic scored four minutes after replacing the injured Arjen Robben and then put the Bundesliga leaders in front with another header early in the second half.
Mario Gotze had come on just before the Croatia striker when Toni Kroos also picked up an injury and the midfielder made the most of his chance by scoring a third Bayern goal at the Allianz Arena.
Hertha were dangerous going forward and Anis Ben-Hatira pulled a goal back, but Pep Guardiola's side were not to be denied as they maintained their 100 per cent home record this season.
The victory ensured the European champions are just one game away from equalling Hamburg's 30-year record of 36 Bundesliga games without defeat and they were also boosted by the return of Javi Martinez, who came off the bench to make his first apperance for two months following a knee injury.
Mandzukic and defender Diego Contento dropped to the bench as Thomas Muller and Jerome Boateng returned to the starting line-up after being rested and suspended respectively for the midweek UEFA Champions League win over Viktoria Plzen.
There were two changes to the visitors' starting line-up following their win over Borussia Monchengladbach, as midfielder Tolga Cigerci and defender Nico Schulz were handed starts by coach Jos Luhukay.
And Luhukay's charges stunned Bayern just three minutes in, when the unmarked Ramos rose to meet Per Ciljan Skjelbred's corner and planted a header into the bottom-right corner of Manuel Neuer's net.
Things almost went from bad to worse for the European champions five minutes later as Ben-Hatira's deft lob bounced down off the crossbar with Neuer beaten.
Bayern were struggling to get going until Gotze and Mandzukic replaced Kroos and Robben.
The Croatia striker took just four minutes to make his presence felt as he rose at the back post to head home Franck Ribery's free-kick.
Hertha continued to threaten and it needed a great challenge from Bastian Schweinsteiger to get across and ensure Cigerci's shot deflected over the bar.
Schweinsteiger then showed his class at the other end six minutes after the break as he delivered an inviting free-kick, which Mandzukic met with a downward header into the far corner from 10 yards.
Kraft should really have done better and was beaten again three minutes later. This time Gotze was in the right place to head Rafinha's cross into the far corner as the Hertha keeper scrambled across in vain.
But Hertha were not finished yet and they were back in it on 57 minutes when Ben-Hatira diverted Ramos' mis-hit shot into the roof of the net.
Ramos was a thorn in Bayern's side and his long-range strike was tipped over by Neuer. Ramos also thought he should have had a penalty for a push by Alaba in stoppage-time, but the referee waved play on and Bayern held on for another win.
|5||D. Van Buyten|
for T. Kroos 24'
for A. Robben 26'
for T. Müller 64'
|Mourinho takes further swipe at ´boring´ claims|
|Watford must spend smart, says Hyde|
|Allegri saddened by derby crowd trouble|
|Thompson ´mortified´ after throwing pole into team-mate´s leg|
|Hernandez not concerning himself with future|
|Stranzl to play no further part in Gladbach season|
|Rodgers keen to address lack of goals|
|Giroud cannot fire Arsenal to title - Henry|
|Do not destroy Sterling, says Campbell|
|Fournier: Lyon still dreaming|
|United performance Stones´ best - Martinez|
|Carver: Abuse from fans unacceptable|
|No shame in second place - Pellegrini|
|Humble Hazard thrilled with PFA honour|
|La Liga Preview: Real continue Barca pursuit against Almeria|
|Serie A Preview: Roma eye much-needed win|
|MLS Review: Toronto end drought, Red Bulls stay unbeaten|
|Chelsea to face Sydney in June|
|Liverpool can attract players - Rodgers|
|Bayern celebrate three-peat|
|Hernandez form forces Ancelotti´s hand|
|Hazard crowned PFA Players´ Player of the Year|
|Weidenfeller ruled out of Dortmund-Bayern semi-final|
|Weidenfeller ruled out of Dortmund-Bayern semi-final|
|Ligue 1 Review: Lens´ fate all but sealed, Lyon return top|
|La Liga Review: Hernandez rescues Real, Sevilla up to fourth|
|Paris Saint-Germain v Metz: Injuries prove a frustration for Blanc|
|Serie A Review: Juve made to wait as Parma fight another day|
|Celta Vigo 2 Real Madrid 4: Hernandez to the rescue again|
|Barcelona v Getafe: Iniesta keen to maintain momentum|
|Milan players in ´retreat´|
|United have opened the door for Liverpool - Van Gaal|
|Mourinho hits back at Arsenal fans´ ´boring´ jibes|
|Juve were own worst enemy in derby defeat – Allegri|
|Bundesliga Review: Gladbach victory ends title race|
|Udinese v Inter: Mancini braced for crucial week|
|Primeira Liga Review: O Classico tie leaves Benfica on the brink|
|Bayern Munich v Borussia Dortmund: Klopp prepares for final Klassiker|
|Russian Premier League Review: Zenit edge closer to glory, Amkar Perm off the bottom|
|Arsenal played with handbrake on - Wenger|
|Mourinho swerves Oscar discussion to hail Terry display|
|Bayern´s title confirmed as Wolfsburg stumble at Gladbach|
|Eredivise Review: Late leveller see Ajax secure Champions League berth|
|Arsenal 0 Chelsea 0: Oscar decision in the spotlight after stalemate|
|Van Gaal bemoans lack of fighting spirit|
|Van Gaal: United to assess Rooney injury|
|Torino 2 Juventus 1: First derby defeat since 1995 puts title celebrations on hold|
|Martinez hails Everton´s ´incredible mentality´ after beating United|
|Everton 3 Manchester United 0: Martinez outwits Van Gaal in comprehensive win|
|Dundee United 0 Celtic 3: Griffiths´ hat-trick edges champions closer to title|
|Alderweireld reveals he has broken shoulder bone|
|Hull City v Liverpool: Lovren expecting another test of patience|
|Leverkusen dealt Papadopoulos blow|
|Five in a row for Champions League winners Auckland|
|Vermaelen cleared to play in Barca run-in|
|Hughes buoyed by Odemwingie return|
|Allardyce hails Adrian heroics|
|Villa confident of staying up - Sherwood|
|Zorc rejects talk of Gundogan departure|
|´Happy´ Hazard rejects talk of Chelsea exit|
|A-League Review: Victory claim Premiers´ Plate|
|Pochettino hoping to strengthen|
|Pjanic critical of Roma spirit|
|Rodgers: No room for error now|
|MLS Review: Revolution win big as Dynamo, Kansas City draw|
|Garcia rues sloppy build-up play|
|Jokanovic eyes title for Watford|
|Blanc: PSG have moved on|
|Hazard worth ´£100m each leg´ - Mourinho|
|Ferguson: United boss can break my trophy record|
|Levante leap clear of La Liga drop zone|
|Primeira Liga Review: Gil Vicente claim vital win, Estoril and Rio Ave held|
|Icardi destined for the top - Mancini|
|Eredivisie Review: Depay inspires 10-man PSV, wins for Heracles and Utrecht|
|Simeone applauds Atletico´s response to European exit|
|Ligue 1 Review: PSG hit Lille for six, Bastia late show stuns Evian|
|Inter 2 Roma 1: Late Icardi strike puts Juve on brink of title|
|Bundesliga Review: Bayern all but champions, Hamburg claim long-awaited win|
|Guardiola focusing elsewhere with Bundesliga almost secure|
|Pellegrini salutes City spirit in Villa win|
|Inzaghi apologies to Milan fans after Udinese defeat|
|Matuidi hails PSG´s best|
|Sherwood lambasts Benteke decision as Villa miss out in late drama|
|League Two Review: Tranmere and Cheltenham lose League status, Shrewsbury promoted|
|Dyche bemoans ´cruel´ defeat|
|Manchester City 3 Aston Villa 2: Fernandinho concludes Etihad drama in City´s favour|
|League One Review: Colchester take survival battle to last day with victory|
|Pardew questions refereeing decisions|
|Bayern Munich 1 Hertha Berlin 0: Schweinsteiger strike all but seals title|
|Ramsey slams referee Jones after disallowed goal|
|Luis Enrique not looking towards title yet|
|Pearson: The win is all that matters|
|Bruce hails improved Hull display|
|Pulis hails ´great point´ for resilient West Brom|
|Udinese 2 Milan 1: Disappointing visitors´ European hopes dented|
|Atletico Madrid 3 Elche 0: Griezmann nets brace as Champions respond to European exit|
|Allardyce laments lack of squad depth|
|Advocaat still confident of survival|
|No loss of belief at Liverpool, insists Rodgers|
|Carver rues ´mad five minutes´|
|Hughes rues Stoke´s missed opportunities|
|Scottish Premiership Review: Aberdeen secure second as St Mirren fight on|
|Championship Review: Watford promoted as Fulham beat Boro|
|Monk revels in new points record|
|Klopp positive ahead of Bayern battle|
|Paris Saint-Germain 6 Lille 1: Lavezzi nets hat-trick as Blanc´s men go top|
|Newcastle United 2 Swansea City 3: Carver´s men continue worrying slide|
|Crystal Palace 0 Hull City 2: N´Doye at the double to give Bruce´s men vital win|
|Watford seal promotion to the Premier League|
|Stoke City 1 Sunderland 1: Adam strike piles pressure on Advocaat|
|Burnley 0 Leicester City 1: Vardy punishes Taylor´s penalty miss|
|West Brom 0 Liverpool 0: Landmark Gerrard appearance ends goalless|
|QPR 0 West Ham 0: Strugglers rue saved Austin penalty|
|Espanyol 0 Barcelona 2: Messi, Suarez and Neymar star for 10-man visitors|
|Koeman rues missed chances|
|Borussia Dortmund 2 Eintracht Frankfurt 0: Aubameyang inspires Klopp´s men|
|Pochettino thanks Spurs supporters|
|Fellaini contemplated leaving Man United|
|Southampton 2 Tottenham 2: Point for Pochettino on St Mary´s return|
|Ankle surgery ends Routledge´s season|
|Lopetegui hoping for Porto reaction|
|A-League Review: Glory end on a high, Adelaide hammer City|
|Howedes ´concerned´ by Schalke form|
|Ancelotti hopeful on injured trio´s fitness|
|Bernabeu return a possibility for Pogba|
|Marseille in crisis, claims Bielsa|
|Van Gaal tips Giggs as his successor|
|De Gea the boss in contract talks - Van Gaal|
|Mourinho hits out at Wenger|
|Shaqiri not going anywhere - Mancini|
|MLS Review: Goalkeeping blunder sees Chicago burn NYC|
|Ancelotti confident in Real´s chances|
|No Messi, no Barca claims ex-Bayern ´keeper Pfaff|
|Hamilton Academical 2 Motherwell 0: Canning gets first win as player-manager|