Answer
Schalke 04 was the club that Badstuber played for on loan from Bayern Munich. This move occurred during the 2016-2017 season as Badstuber sought more playing time and a chance to regain his form after struggling with injuries. The loan spell provided him with an opportunity to prove his worth and potentially earn a permanent move away from Bayern Munich.