Updated

Barcelona advanced to the Champions League final for the first time since 2011, getting a pair of Neymar goals and cruising to a 3-2 loss at Bayern Munich on Tuesday night for a 5-3 aggregate victory in their semifinal matchup.

Seeking its fifth European title, Barcelona will play defending champion Real Madrid or Juventus at Berlin on June 6. Real tries to overturn a 2-1 deficit in Wednesday's semifinal.

Trailing after a 3-0 loss at Barcelona last week, Bayern went ahead when Medhi Benatia scored on a header off a corner kick in the seventh minute.

Neymar scored four minutes later, and the away goal meant Bayern needed a four-goal victory to advance.

Neymar's second goal put Barcelona ahead 2-1 in the 29th, and Bayern got goals from Robert Lewandowski in the 59th and Thomas Mueller in the 74th.

Bayern coach Pep Guardiola, who coached Barcelona to 14 titles from 2008-12, exchanged an extended hug with current Blaugrana coach Luis Enrique after the final whistle.