BERLIN — Bayern Munich beat Stuttgart 3-2 to seal the club's first treble by winning the German Cup on Saturday in Jupp Heynckes' last game in charge.
Mario Gomez scored twice and Bayern became the first German side to win a treble of domestic league, cup and European Cup, and only the seventh team overall to achieve the feat.
Thomas Mueller opened the scoring with a penalty in the 37th minute, Gomez made it 2-0 three minutes into the second half, and the former Stuttgart striker added his second in the 61st.
Martin Harnik pulled one back in the 71st, and set up an exciting finale when he scored again with 10 minutes remaining, but Bayern held on to complete the most successful season for a German club.
"It doesn't get any better," former Bayern star Franz Beckenbauer said. "The Stuttgarters made it exciting for us. But when you look at the 90 minutes, the win was deserved. No other team managed to win all the titles before. This is the best Bayern team ever. I can't remember a season that went any better. This is the absolute highlight."
Bayern's record 16th German Cup comes one week after it beat Borussia Dortmund 2-1 in London to win the Champions League and eight after it broke a host of records in claiming its 23rd Bundesliga title, leaving incoming coach Pep Guardiola with a daunting challenge to match Heynckes' achievements this season.
"It's unbelievable what the team and coach have achieved over the whole season," Bayern captain Philipp Lahm said. "They were tough months but now we're being rewarded for them."
Only Celtic in 1967, Ajax in 1972, PSV Eindhoven in 1988, Manchester United in 1999, Guardiola's Barcelona in 2009, and Inter Milan in 2010 previously won the treble.
Bayern began by bossing possession. Arjen Robben's effort was deflected just wide by Stuttgart 'keeper Sven Ulreich, who was to make a number of saves later in the game.
Alexandru Maxim went closest for Stuttgart, shooting just wide after he was set up by Ibrahima Traore.
It looked like Robben was denied a clear penalty in the 31st, when Stuttgart captain Serdar Tasci missed the ball and kicked the Bayern winger instead. Referee Manuel Graefe gave a corner.
Graefe pointed to the penalty spot five minutes later, however, when Traore bundled over the inrushing Philipp Lahm, and Mueller duly converted.
Gomez scored from close range after the break, when Lahm's cross rebounded off his right shin to his left leg, back to his right and in.
Mueller crossed for Gomez's second. Heynckes then took the Germany striker off to a great reception after what may have been his last Bayern game.
Harnik scored what looked like a consolation with a fine header from substitute Gotoku Sakai's cross, but it was game on when the Austrian scored again, blasting past Neuer at the second attempt after the goalkeeper saved his first effort.
Stuttgart threw everything forward to force extra time, but Neuer wasn't to be beaten again.
"It was a super season," said Bayern defender Daniel van Buyten. "We played very well from the beginning. Last year a title was missing. Now we're happy that we can celebrate."
Barcelona capped its Spanish league title by tying the record of 100 points, beating Malaga 4-1 on Saturday to close out a season that had several farewells, none more notable than that by Real Madrid coach Jose Mourinho.
Also, Real Sociedad edged out Valencia for fourth place and the last Champions League berth, while Mallorca, Deportivo La Coruna, and Real Zaragoza were all relegated.
At the Camp Nou stadium, Barcelona stormed to an insurmountable lead to match the points milestone set by Madrid last season.
David Villa, Cesc Fabregas, Martin Montoya and Andres Iniesta all scored for Barcelona before Pedro Morales pulled one back for Malaga.
Earlier, Madrid beat Osasuna 4-2 in Mourinho's last game before his expected return to the English Premier League.
Madrid, which never recovered from a poor start to the season, finished in a distant second place 15 points behind Barcelona and without a major title after coming up short in the Champions League and Copa del Rey.
It was also the last appearance for Barcelona defender Eric Abidal, Malaga coach Manuel Pellegrini and Madrid striker Gonzalo Higuain, all set to change clubs this summer.
The other eight games on the final day will determine remaining berths for European competition and the three relegated teams.
Barcelona got rolling when Villa batted in a generous back pass from Pedro Rodriguez three minutes in after Iniesta found Pedro at the end of a run with a long through ball.
With Lionel Messi still out with a right leg injury, Fabregas did his best imitation of the Argentina star by dribbling by several defenders, working a one-two passing combination, and looping the ball in from the edge of the box in the 14th.
Two minutes later, right back Montoya drove in a loose ball from outside the area for his first goal with Barcelona.
Barcelona kept weaving its mesmerizing web of passes and Iniesta curled in a fourth goal from long range six minutes after halftime, before Morales scored in the 56th.
Abidal, who fought back from a liver transplant to rejoin the team this season, went on to a standing ovation to play his final 14 minutes for Barcelona after the club didn't offer to prolong his six-year stint.
Barcelona goalkeeper Jose Pinto, making a surprise start in place of Victor Valdes with speculation linking him to a move to Monaco this offseason, made several saves to deny Malaga a second goal down the stretch.
The Santiago Bernabeu fans greeted Mourinho with a mix of applause and jeers, but even with Cristiano Ronaldo out with a back problem, his players made sure the Portuguese manager went out on a win.
Rumored to be heading to Juventus, Higuain scored what he later said was his 121st and last goal for Madrid in the 35th.
After the match Higuain said he was leaving Madrid after seven seasons, without specifying his destination.
Michael Essien made it 2-0 three minutes later with a well-placed header while falling away from the goal to redirect a corner kick into the net. The Ghana midfielder is returning to Chelsea this summer with his loan deal ending, likely joining Mourinho back in the London-based side.
Madrid appeared to be in control until its defense relaxed after halftime and Roberto Torres struck with a long shot in the 52nd before Alvaro Cejudo made it 2-2 with a header in the 63rd.
Benzema, however, restored Madrid's lead for good after delicately controlling a pass from Mesut Ozil in the area.
Goalkeeper Ricardo Lopez went on for Osasuna late to play his final 15 minutes before retiring after 16 seasons. He conceded his final goal when Jose Callejon finished off a counterattack in the 87th.
Osasuna ensured its place in the top flight next season with a win in the previous round.