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.

Bayern's Robert Lewandowski, who scored twice, celebrates his team's 3-2 win after the German soccer cup, DFB Pokal, semifinal match between Werder Bremen and Bayern Munich at the Weser stadium in Bremen, Germany, Wednesday, April 24, 2019. (AP PhotoMartin Meissner)

Bayern's Robert Lewandowski, who scored twice, celebrates his team's 3-2 win after the German soccer cup, DFB Pokal, semifinal match between Werder Bremen and Bayern Munich at the Weser stadium in Bremen, Germany, Wednesday, April 24, 2019. (AP PhotoMartin Meissner)

"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."

Bayern's Robert Lewandowski, right, sees his shot bounce off the post as Bremen's Niklas Moisander stretches in vain to block the shot during the German soccer cup, DFB Pokal, semifinal match between Werder Bremen and Bayern Munich at the Weser stadium in Bremen, Germany, Wednesday, April 24, 2019. (AP PhotoMartin Meissner)

Bayern's Robert Lewandowski, right, sees his shot bounce off the post as Bremen's Niklas Moisander stretches in vain to block the shot during the German soccer cup, DFB Pokal, semifinal match between Werder Bremen and Bayern Munich at the Weser stadium in Bremen, Germany, Wednesday, April 24, 2019. (AP PhotoMartin Meissner)

Bayern's Robert Lewandowski, left, scores his side's first goal passing Bremen goalkeeper Jiri Pavlenka during the German soccer cup, DFB Pokal, semifinal match between Werder Bremen and Bayern Munich at the Weser stadium in Bremen, Germany, Wednesday, April 24, 2019. (AP PhotoMartin Meissner)

Bayern's Robert Lewandowski, left, scores his side's first goal passing Bremen goalkeeper Jiri Pavlenka during the German soccer cup, DFB Pokal, semifinal match between Werder Bremen and Bayern Munich at the Weser stadium in Bremen, Germany, Wednesday, April 24, 2019. (AP PhotoMartin Meissner)