Guardiola's side were far from their normal fluent self and were punished in the 29th minute as Ibisevic netted his 10th league goal of the season.

Werner's deflected shot from the edge of the area dropped to the Bosnian striker via the boot of Abdellaoue, who looked offside, and he calmly fired past Neuer from 10 yards to give the hosts a deserved lead.

Thiago and Xherdan Shaqiri both went close to levelling for Bayern in the closing minutes of the first half but were unable to beat Ulreich.

Ibisevic had a chance to double his tally, and Stuttgart's lead, early in the second half but he fired wide of goal after a mistake from Rafinha.

With 54 minutes played, the hosts had another chance to score, and they would have made it 2-0 had it not been for a goalline clearance from Jerome Boateng.

Former Barcelona man Thiago and Thomas Muller were denied by Ulreich but substitute Pizarro had no problems beating the goalkeeper with a well-placed header in the 76th minute.

Fellow substitute Mandzukic had a chance to win the game in the closing minutes but Thiago spared Bayern's blushes with an acrobatic volley in the last seconds of the match.