Zlatan Ibrahimovic scored one goal and set up the other as he inspired Paris St-Germain against former club Barcelona in a thrilling Champions League quarter-final first leg match.
The Swede stabbed home from an apparently offside position to cancel out Lionel Messi's well-made opener.
Xavi's 89th-minute penalty after Salvatore Sirigu fouled Alexis Sanchez seemed to have secured Barca's win.
But Ibrahimovic's 94th-minute knock-down was swept home by Blaise Matuidi.
It was a disappointing end for Barcelona, who had lost Messi to a hamstring strain at half-time and Javier Mascherano to another injury in the second half.
Those injuries combined with Ibrahimovic's performance against a team where he had an unhappy 2009-10 season may have dominated the post-match discussion, but it was the inclusion of 37-year-old David Beckham in PSG's starting line-up that caught the eye before kick-off.
The selection of the former England captain, ahead of the 20-year-old Marco Verratti, looked questionable as Barcelona monopolised possession in an ominous opening, but Beckham went on to have a solid 70 minutes in a deep-lying midfield role.
Despite their early dominance, Barca looked vulnerable at the back and almost conceded from PSG's first attack as a flustered Sergio Busquets poked the ball against the frame of his own goal.
The home side's game plan initially confounded Barca with Beckham and the industrious Matuidi sitting deep and launching swift counter-attacks towards a dangerous front quartet of Ibrahimovic, the impressive Lucas Moura, and Argentine pair Ezequiel Lavezzi and Javier Pastore.
Barcelona were limited to wayward long-range efforts from Andres Iniesta and Alexis Sanchez, before a moment of brilliance converted their time on the ball to a score on the board.
Despite Messi's neat finish for his 57th goal of the season, Dani Alves's delicious pass, off the outside of his right foot, to slice open the defence stole the show.
Messi escaped the attentions of the excellent Thiago Silva once more to curl narrowly over but it was to be his final contribution as he hobbled out of the action with a right hamstring strain that will be assessed over the next 24 hours.
Former Arsenal midfielder Cesc Fabregas came on in place of Messi, but without the Argentine's attacking menace on the pitch Matuidi was able to push forward.
Ibrahimovic almost scooped the ball cleverly into the path of the PSG midfielder, who will miss the return leg after picking up a booking, but Gerard Pique was quick enough to make up the ground.
Sanchez had wasted two openings for Barca before Ibrahimovic, coming from an offside position, poked in after Thiago Silva's header hit the post.
With a minute of normal time left, Xavi coolly converted from 12 yards after Sanchez had been felled by Sirigu's needless charge from goal.
But Ibrahimovic, whose flick-on had almost played in Kevin Gamiero minutes before, had the final word as he nodded the ball into the path of Matuidi whose shot squirmed past Victor Valdes after going through the legs of Barca substitute Marc Bartra.
- 30 Sirigu Booked
- 02 Thiago Silva
- 13 Alex
- 17 Maxwell
- 14 Matuidi Booked
- 26 Jallet
- 29 da Silva Lucas
- 32 Beckham Booked (Verratti - 70' )
- 11 Lavezzi (Menez - 66' )
- 18 Ibrahimovic Booked
- 27 Pastore (Gameiro - 76' )
- 01 Douchez
- 03 Sakho
- 23 Van Der Wiel
- 20 Chantome
- 24 Verratti
- 07 Menez
- 19 Gameiro
- 01 Valdes
- 02 Alves Booked
- 03 Pique Booked
- 18 Alba Booked
- 06 Xavi
- 08 Iniesta
- 10 Messi (Fabregas - 46' )
- 14 Mascherano Booked (Bartra - 84' )
- 16 Busquets
- 07 Villa (Cristian Tello - 81' )
- 09 Sanchez
- 13 Pinto
- 15 Bartra
- 19 Montoya
- 04 Fabregas
- 11 Thiago
- 25 Song
- 37 Cristian Tello
Live Text Commentary
Full Time The referee brings the game to a close.90:00 +3:44
Zlatan Ibrahimovic provided the assist for the goal.90:00 +3:44 Goal scored
Goal! - Blaise Matuidi - Paris SG 2 - 2 Barcelona A goal is scored by Blaise Matuidi from the edge of the penalty box to the bottom left corner of the goal. PSG 2-2 Barcelona.90:00 +2:31
Zlatan Ibrahimovic is ruled offside. Free kick taken by Victor Valdes.90:00 +1:02
The assistant referee flags for offside against Zlatan Ibrahimovic. Indirect free kick taken by Victor Valdes.90:00 +0:38
Alexis Sanchez concedes a free kick for a foul on Scherer Andrade Maxwell. Emiliano Thiago Silva takes the free kick.90:00
Zlatan Ibrahimovic concedes a free kick for a foul on Sergio Busquets. Victor Valdes restarts play with the free kick.88:58 Goal scored
Goal! - Hernandez Xavi - Paris SG 1 - 2 Barcelona Hernandez Xavi scores a placed penalty. PSG 1-2 Barcelona.88:05 Booking
Booking Caution for Salvatore Sirigu.87:52
Foul by Salvatore Sirigu on Alexis Sanchez, Penalty awarded.86:10
Victor Valdes takes the direct free kick.86:10 Booking
Booking Booking for Zlatan Ibrahimovic.85:46
Unfair challenge on Ramos Jordi Alba by Zlatan Ibrahimovic results in a free kick.84:36 Booking
Booking Da Silva Dani Alves goes into the book for dissent.84:16
Da Silva Dani Alves delivers the ball, Christophe Jallet manages to make a clearance.82:45
Free kick taken by Sergio Busquets.82:45 Substitution
Substitution (Barcelona) makes a substitution, with Marc Bartra coming on for Javier Mascherano.82:45
Marco Verratti gives away a free kick for an unfair challenge on Andres Iniesta.80:06 Substitution
Substitution David Villa leaves the field to be replaced by Cristian Tello.78:58 Goal scored
Goal! - Zlatan Ibrahimovic - Paris SG 1 - 1 Barcelona Goal scored by Zlatan Ibrahimovic from close range to the bottom left corner of the goal. PSG 1-1 Barcelona.
Free kick awarded for an unfair challenge on Marco Verratti by David Villa. Scherer Andrade Maxwell produces a cross, Header by Emiliano Thiago Silva from inside the area strikes the post.78:28
Jeremy Menez delivers the ball, Gerard Pique makes a clearance.78:16
Short corner taken by Jeremy Menez from the left by-line.76:34
Zlatan Ibrahimovic takes a shot. Victor Valdes makes a save.74:31
Jeremy Menez delivers the ball, Headed effort from inside the penalty area by Rodrigues Lucas Moura misses to the right of the target. Outswinging corner taken by Jeremy Menez.74:31 Substitution
Substitution (PSG) makes a substitution, with Kevin Gameiro coming on for Javier Pastore.74:31 Booking
Booking Javier Mascherano receives a caution.74:29
Javier Mascherano challenges Jeremy Menez unfairly and gives away a free kick.74:07
Outswinging corner taken by Hernandez Xavi from the right by-line, clearance made by Emiliano Thiago Silva.72:41
Foul by Alex on David Villa, free kick awarded. Strike on goal comes in from Hernandez Xavi from the free kick.70:15
Scherer Andrade Maxwell takes a shot. Save by Victor Valdes.69:04
Hernandez Xavi takes the direct free kick.69:04 Substitution
Substitution Marco Verratti joins the action as a substitute, replacing David Beckham.69:04
Unfair challenge on da Silva Dani Alves by Jeremy Menez results in a free kick.67:15
Da Silva Dani Alves produces a strike on goal direct from the free kick.67:15 Booking
Booking David Beckham receives a yellow card.67:07
Unfair challenge on Alexis Sanchez by David Beckham results in a free kick.64:57
Sergio Busquets takes the free kick.64:57 Substitution
Substitution Jeremy Menez is brought on as a substitute for Ezequiel Lavezzi.64:57 Booking
Booking Blaise Matuidi shown a yellow card.64:52
Blaise Matuidi concedes a free kick for a foul on Andres Iniesta.64:10
Centre by Francesc Fabregas, Alexis Sanchez takes a shot. Save made by Salvatore Sirigu.63:26
Inswinging corner taken by Hernandez Xavi, Emiliano Thiago Silva manages to make a clearance.62:51
The ball is crossed by da Silva Dani Alves.62:21
The ball is crossed by Blaise Matuidi, save made by Victor Valdes.61:02 Booking
Booking Ramos Jordi Alba is cautioned by the ref for unsporting behaviour.59:23
Hernandez Xavi takes the outswinging corner, Zlatan Ibrahimovic makes a clearance.58:55
Corner taken by Hernandez Xavi.56:45
The ball is swung over by Christophe Jallet.50:20
Shot by Sergio Busquets from 25 yards. Save by Salvatore Sirigu.50:07
Hernandez Xavi takes a floated corner.49:33
Francesc Fabregas has an effort at goal. Emiliano Thiago Silva gets a block in.48:49
Andres Iniesta fouled by Christophe Jallet, the ref awards a free kick. Direct free kick taken by Ramos Jordi Alba.48:06
Free kick awarded for an unfair challenge on David Beckham by Sergio Busquets. Direct free kick taken by Javier Pastore.46:18
David Beckham gives away a free kick for an unfair challenge on Alexis Sanchez. Free kick taken by Javier Mascherano.45:58
The ball is sent over by Scherer Andrade Maxwell, Ramos Jordi Alba manages to make a clearance.45:01
The referee blows his whistle to start the second half.45:01 Substitution
Substitution (Barcelona) makes a substitution, with Francesc Fabregas coming on for Lionel Messi.45:00 +1:12 Half time
Half Time The ref blows to signal half-time.43:21
Blaise Matuidi takes a shot. Sergio Busquets gets a block in.42:34
Alex concedes a free kick for a foul on Hernandez Xavi. Direct free kick taken by Sergio Busquets.41:53
Effort on goal by Lionel Messi from just inside the penalty area goes harmlessly over the target.40:26
The offside flag is raised against David Villa. Indirect free kick taken by Salvatore Sirigu.37:20
Assist on the goal came from da Silva Dani Alves.37:20 Goal scored
Goal! - Lionel Messi - Paris SG 0 - 1 Barcelona Lionel Messi finds the back of the net with a goal from close range to the bottom right corner of the goal. PSG 0-1 Barcelona.37:02
Inswinging corner taken by Hernandez Xavi, clearance by Alex.36:44
Alexis Sanchez has an effort at goal from just outside the area which goes wide of the left-hand post.36:15
Lionel Messi produces a cross, Emiliano Thiago Silva manages to make a clearance.35:59
Corner taken right-footed by Hernandez Xavi from the right by-line, clearance by Alex.35:31
Da Silva Dani Alves delivers the ball, Scherer Andrade Maxwell gets a block in.34:42
Foul by Andres Iniesta on Ezequiel Lavezzi, free kick awarded. David Beckham takes the direct free kick.33:24
Ramos Jordi Alba concedes a free kick for a foul on Rodrigues Lucas Moura. Direct free kick taken by David Beckham.32:04
Ezequiel Lavezzi is ruled offside. Javier Mascherano restarts play with the free kick.31:16
Unfair challenge on Emiliano Thiago Silva by Alexis Sanchez results in a free kick. Free kick taken by Salvatore Sirigu.31:09
Ramos Jordi Alba sends in a cross.30:27
Alexis Sanchez takes a shot. Blocked by Alex.27:59
The ball is crossed by da Silva Dani Alves, Emiliano Thiago Silva manages to make a clearance.25:04
Zlatan Ibrahimovic has an effort at goal from deep inside the area missing to the right of the target.22:00
Effort on goal by Andres Iniesta from 20 yards. Salvatore Sirigu makes a save.20:38
Foul by Blaise Matuidi on Andres Iniesta, free kick awarded. Direct free kick taken by Andres Iniesta.19:05
Sergio Busquets fouled by Blaise Matuidi, the ref awards a free kick. Direct free kick taken by Javier Mascherano.18:37
The referee blows for offside against Zlatan Ibrahimovic. Indirect free kick taken by Victor Valdes.18:12
Inswinging corner taken from the left by-line by David Beckham, Victor Valdes makes a save.17:02
Zlatan Ibrahimovic shoots direct from the free kick, Victor Valdes makes a save.17:02 Booking
Booking Gerard Pique receives a yellow card.17:01
Gerard Pique gives away a free kick for an unfair challenge on Zlatan Ibrahimovic.16:22
Andres Iniesta has an effort at goal from the edge of the box that misses to the right of the target.13:25
Free kick awarded for an unfair challenge on Rodrigues Lucas Moura by Sergio Busquets. The ball is sent over by David Beckham, Rodrigues Lucas Moura takes a shot. Shot by Javier Pastore. Victor Valdes makes a save.12:14
Outswinging corner taken right-footed by David Beckham from the right by-line, Header by Alex from deep inside the penalty area misses to the left of the target.9:36
The referee blows for offside. Free kick taken by Victor Valdes.7:53
Hernandez Xavi produces a right-footed shot from outside the penalty area and misses left.6:25
The ball is crossed by Ramos Jordi Alba, clearance by Scherer Andrade Maxwell.4:44
Javier Pastore takes a shot. Blocked by Javier Mascherano.4:31
Ezequiel Lavezzi takes a shot from close in that bounces off the post.3:28
Sergio Busquets challenges Rodrigues Lucas Moura unfairly and gives away a free kick. David Beckham takes the direct free kick.3:04
Ezequiel Lavezzi fouled by Sergio Busquets, the ref awards a free kick. Direct free kick taken by Alex.1:43
Da Silva Dani Alves challenges Scherer Andrade Maxwell unfairly and gives away a free kick. Direct free kick taken by Salvatore Sirigu.0:00
The match gets underway.
Live data and text provided by our data suppliers