Marco Reus put Dortmund ahead but Bayern rallied through Arjen Robben to level.
A Daniel van Buyten own goal and Ilkay Gundogan put Dortmund ahead again, before Robben scored another. Reus sealed victory for Dortmund to give Pep Guardiola a losing start to his competitive career as Bayern coach.