Guangzhou Evergrande and Bayern were making their Club World Cup debuts, and it was the first ever meeting between the two sides.
Guangzhou set up defensively, making it difficult for Bayern to find space early on. However, this would be the theme of the first half as the European champions had the majority of possession in their attacking half.
Pep Guardiola's men took only three minutes to send a warning out to Guangzhou when captain Philipp Lahm volleyed over the crossbar from 20 metres out.
After possessing the ball outside the penalty box for long spells, Lahm eventually found Thiago from the right side of the box when the Spanish midfielder chested the ball down and hit a fierce right-footed shot from nine metres out only to be denied by goalkeeper Zeng Cheng's post.
Four minutes later Bayern were awarded a free-kick from 21 metres out when Huang Bowen felled Ribery. The Ballon d'Or nominee could only strike his shot over the bar.
Bayern were denied again by the post when midfielder and Germany international Toni Kroos hit a ferocious left-footed shot from 18 metres out only for the ball to bounce down in front of the goal-line.
Seconds later, Ribery had a shot saved by Cheng.
The AFC champions were able to weather the storm for the next ten minutes, venturing into Bayern's defensive half without creating any major chances.
In the 39th minute, Germany international Jerome Boateng hit a volley wide from the left edge of the penalty area.
Bayern were eventually awarded for their impressive offensive display in the 40th minute when Guangzhou's defence failed to clear a cross from Lahm, whose ball landed at Ribery's feet. The French winger hit a left-footed volley that snuck under the diving Cheng and into the net for the opener.
Bayern had the last word in the half after Thiago won the ball on the right side of the penalty area to cross towards the far post where Croatian striker Mandzukic headed in the second in the 44th minute.
Guangzhou looked to have responded well to coach Marcello Lippi's half-time instructions when Brazilian forward Muriqui broke on a counter-attack only to hit the side-netting early in the second half.
However, the Chinese giants' hopes were dashed when diminutive midfielder Mario Goetzemade it 3-0 with a right-footed shot from the corner which took a slight deflection off Sun Xiang to fly past Cheng, giving Guangzhou a mountain to climb.
Bayern threatened to stretch the lead even further with shots from Goetzeand Ribery, who grazed the crossbar after a fine dribbling progression.
Ribery was eventually replaced by Switzerland international Xherdan Shaqiri. The fans at Agadir Stadium were clearly appreciative of his performance, sending him off with applause and cheers.
In the 78th minute Rafinha drove down the right wing and found Goetzewaiting in the penalty box only for his shot to miss by a matter of centimetres.
Shaqiri then fired a shot from the left side into Cheng's side-netting.
The last significant chance of the semi-final came when Goetzeconnected with another Shaqiri cross, only for his fierce drive to be tipped onto the crossbar, making it the fourth shot against a post in the match, before the match was drawn to a close.
Bayern will face the winner of tomorrow's semi-final between home side Raja Casablanca and Clube Atletico Mineiro in the final at Marrakech Stadium on 21 December, while Guangzhou will play for third place against the loser of that match earlier the same day.