Bayern Munich recovered from going two goals down after 12 minutes to see off Hoffenheim and increase their lead in the Bundesliga to 16 points.
The leaders fell behind to strikes from Mark Uth and former Arsenal winger Serge Gnabry, who is on loan at Hoffenheim from Bayern.
But goals from Robert Lewandowksi and Jerome Boateng pulled the hosts level with 25 minutes played.
Kingsley Coman and Arturo Vidal efforts put Bayern in front after the break.
Sandro Wagner added a late fifth for the league leaders.