BREMEN, Germany — Robert Lewandowski sent Bayern Munich into the German Cup final by scoring twice in a 3-2 win over Werder Bremen on Wednesday, including the winner in the 80th minute.

Bayern built a seemingly comfortable 2-0 lead after Lewandowski opened the scoring in the 36th minute by turning in a header from Thomas Mueller, who added the second in the 63rd.

But Bremen staged a quick comeback with two goals in the span of two minutes through Yuya Osako and Milot Rashica. However, Kingsley Coman was fouled inside the box in the 80th minute and Lewandowski converted the penalty to set up a final against RB Leipzig.

"In my opinion, we deserve to reach the final because we had better chances than Bremen," Bayern coach Niko Kovac said. "It was a great fight, as expected, and in the end we needed that little bit of luck."