Argentina and Nigeria both qualified for the last 16 of the World Cup despite two Lionel Messi goals condemning the African side to a 3-2 defeat in their final group game.

The Barcelona forward netted a fierce opener, but Ahmed Musa equalised within 80 seconds with a curling finish.

Lionel Messi stats graphic

Messi made it 2-1 before the break with a 25-yard free-kick, but Musa grabbed his second after bursting through.

Marcos Rojo scored Argentina's winner, knocking in a corner with a knee.

The result means Argentina finish top of Group F with three wins from three games, while Nigeria qualify in second with four points after Iran failed to defeat Bosnia-Hercegovina.

Nigeria will face France in the last 16 in Brasilia next Monday, while Argentina take on Switzerland a day later in Sao Paulo.

They progressed after another goal-laden World Cup match.

It only took three minutes for the deadlock to be broken as Messi smashed home after Angel Di Maria's effort came off a post.

The celebrations had barely died down when Nigeria levelled. Midfielder Michel Babatunde - who was later stretchered off with a wrist injury - fed the ball into the left side of the area for Musa, who shifted to his right before curling in.

Messi curls free-kick past Nigeria

It was the first time in World Cup history that two opposing teams had both scored inside the first five minutes.

The forwards on show continued to expose the fragility of both defences, but it was not until stoppage time in the first half that the next goal arrived.

Messi, who moments earlier drew an exceptional save from Vincent Enyeama with a free-kick, struck a set-piece over the wall and beyond the reach of the Lille goalkeeper.

It was the 27-year-old's fourth goal in three matches at Brazil 2014, having scored just once in his first eight World Cup appearances.

Match facts

  • Messi has scored 10 times in his past eight appearances for Argentina
  • This is the second time Argentina have conceded in the opening five minutes of a World Cup match since 1966
  • Musa is the first Nigeria player to score twice in a World Cup match

Nigeria knew Bosnia-Hercegovina had taken an early lead against Iran, the African team's rivals for qualification, but they did not sit back and were level again within two minutes of the restart.

Musa was the goalscorer again, the CSKA Moscow forward playing a one-two Emmanuel Emenike before slotting the ball past Sergio Romero.

Argentina pressed once more, with Di Maria twice forcing Enyeama to make good stops. But the Nigeria goalkeeper was beaten when defender Rojo used his knee to convert a corner from the left.

A desperate Di Maria was thwarted again by Enyeama in the closing moments, as the match ended in the same thrilling manner in which it began.

Argentina's Lionel Messi scores the first goal against Nigeria

Messi (second from right) scored his third goal in three World Cup games

Ahmed Musa equalises

Musa, out of shot, equalised for Nigeria only 80 seconds after Argentina's opener

Argentina's Lionel Messi scores from a free-kick

Messi gave Enyeama little chance with his free-kick

Ahmed Musa (centre) celebrates his second goal

Musa (centre) scored two goals from only two shots

Argentina"s Marcos Rojo (left)

Rojo scored his first goal for Argentina in the second half

Lineup, Bookings (2) & Substitutions (5)

Nigeria

  • 01 Enyeama
  • 13 Oshaniwa Booked
  • 22 Omeruo Booked
  • 02 Yobo
  • 05 Ambrose Emuobo
  • 10 Mikel
  • 18 Babatunde (Uchebo - 66' )
  • 17 Onazi
  • 07 Musa
  • 08 Odemwingie (Nwofor - 80' )
  • 09 Emenike

Substitutes

  • 03 Uzoenyi
  • 04 Gabriel
  • 06 Egwuekwe
  • 12 Odunlami
  • 14 Oboabona
  • 15 Azeez
  • 16 Ejide
  • 19 Nwofor
  • 20 Uchebo
  • 21 Agbim
  • 23 Ameobi

Argentina

  • 01 Romero
  • 16 Rojo
  • 02 Garay
  • 17 Fernández
  • 04 Zabaleta
  • 14 Mascherano
  • 05 Gago
  • 10 Messi (Álvarez - 63' )
  • 07 Di María
  • 09 Higuaín (Biglia - 91' )
  • 20 Agüero (Lavezzi - 38' )

Substitutes

  • 03 Campagnaro
  • 06 Biglia
  • 08 Pérez
  • 11 Rodríguez
  • 12 Orión
  • 13 Fernández
  • 15 Demichelis
  • 18 Palacio
  • 19 Álvarez
  • 21 Andujar
  • 22 Lavezzi
  • 23 Basanta
Ref: Nicola Rizzoli
Att: 43,285

Match Stats

Shots

12 18

On target

3 13

Corners

4 12

Fouls

16 5

Live Text Commentary

Full time

Full Time Match ends, Nigeria 2, Argentina 3.

90:00 +3:53 Full time

Full Time Second Half ends, Nigeria 2, Argentina 3.

90:00 +3:43

Ricardo Álvarez (Argentina) wins a free kick on the left wing.

90:00 +3:43

Foul by Ogenyi Onazi (Nigeria).

90:00 +2:31

Foul by Ezequiel Lavezzi (Argentina).

90:00 +2:31

Kenneth Omeruo (Nigeria) wins a free kick in the defensive half.

90:00 +0:44

Delay over. They are ready to continue.

90:00 +0:21 Substitution

Substitution Substitution, Argentina. Lucas Biglia replaces Gonzalo Higuaín.

89:43

Delay in match Juwon Oshaniwa (Nigeria) because of an injury.

89:07

Attempt saved. Javier Mascherano (Argentina) right footed shot from outside the box is saved in the top centre of the goal. Assisted by Fernando Gago.

86:58

Corner, Nigeria. Conceded by Ezequiel Garay.

86:56

Attempt blocked. Efe Ambrose (Nigeria) right footed shot from the right side of the box is blocked. Assisted by Ogenyi Onazi.

84:42

Attempt saved. Ángel Di María (Argentina) left footed shot from the left side of the box is saved in the top centre of the goal. Assisted by Gonzalo Higuaín with a through ball.

83:53

Attempt missed. Emmanuel Emenike (Nigeria) right footed shot from outside the box misses to the left. Assisted by John Obi Mikel.

81:22

Attempt blocked. Ogenyi Onazi (Nigeria) right footed shot from outside the box is blocked.

81:20

Attempt blocked. Michael Uchebo (Nigeria) right footed shot from outside the box is blocked. Assisted by Uche Nwofor.

80:53

Corner, Nigeria. Conceded by Federico Fernández.

80:12

Foul by Gonzalo Higuaín (Argentina).

80:12

Efe Ambrose (Nigeria) wins a free kick in the attacking half.

79:39 Substitution

Substitution Substitution, Nigeria. Uche Nwofor replaces Peter Odemwingie.

79:10

Attempt missed. Ezequiel Garay (Argentina) header from the centre of the box is close, but misses to the right. Assisted by Ángel Di María with a cross following a corner.

78:33

Corner, Argentina. Conceded by Efe Ambrose.

78:07

Attempt blocked. Ahmed Musa (Nigeria) right footed shot from the centre of the box is blocked. Assisted by Emmanuel Emenike with a through ball.

77:08

Corner, Argentina. Conceded by Vincent Enyeama.

77:06

Attempt saved. Ezequiel Lavezzi (Argentina) right footed shot from a difficult angle on the right is saved in the bottom left corner. Assisted by Ángel Di María.

76:14

Ricardo Álvarez (Argentina) wins a free kick on the right wing.

76:14

Foul by Ogenyi Onazi (Nigeria).

74:22

Offside, Nigeria. Michael Uchebo tries a through ball, but Emmanuel Emenike is caught offside.

73:36

Attempt missed. Ahmed Musa (Nigeria) right footed shot from the centre of the box is too high. Assisted by Peter Odemwingie with a cross.

72:59

Corner, Nigeria. Conceded by Marcos Rojo.

70:19

Foul by Pablo Zabaleta (Argentina).

70:19

Ahmed Musa (Nigeria) wins a free kick on the left wing.

68:11

Corner, Argentina. Conceded by Juwon Oshaniwa.

66:17

Javier Mascherano (Argentina) wins a free kick in the defensive half.

66:17

Foul by Peter Odemwingie (Nigeria).

65:04 Substitution

Substitution Substitution, Nigeria. Michael Uchebo replaces Michel Babatunde because of an injury.

65:01

Delay over. They are ready to continue.

63:11

Delay in match Michel Babatunde (Nigeria) because of an injury.

62:38 Substitution

Substitution Substitution, Argentina. Ricardo Álvarez replaces Lionel Messi.

61:43

Corner, Argentina. Conceded by Kenneth Omeruo.

61:32

Attempt blocked. Ogenyi Onazi (Nigeria) right footed shot from outside the box is blocked.

61:05

Attempt saved. John Obi Mikel (Nigeria) right footed shot from the left side of the box is saved in the top right corner.

60:25

Corner, Nigeria. Conceded by Marcos Rojo.

58:52

Attempt missed. Lionel Messi (Argentina) left footed shot from the centre of the box is close, but misses to the left. Assisted by Marcos Rojo.

56:57

Corner, Argentina. Conceded by Kenneth Omeruo.

56:05

Lionel Messi (Argentina) wins a free kick in the attacking half.

56:05

Foul by Michel Babatunde (Nigeria).

54:37

Offside, Argentina. Pablo Zabaleta tries a through ball, but Lionel Messi is caught offside.

54:11

Attempt saved. Gonzalo Higuaín (Argentina) right footed shot from the left side of the box is saved in the bottom right corner. Assisted by Lionel Messi with a through ball.

53:28

Fernando Gago (Argentina) wins a free kick in the defensive half.

53:28

Foul by Michel Babatunde (Nigeria).

50:40 Booking

Booking Juwon Oshaniwa (Nigeria) is shown the yellow card for a bad foul.

50:38

Ezequiel Lavezzi (Argentina) wins a free kick in the defensive half.

50:38

Foul by Juwon Oshaniwa (Nigeria).

49:30 Goal scored

Goal! Goal! Nigeria 2, Argentina 3. Marcos Rojo (Argentina) right footed shot from very close range to the top right corner following a corner.

49:10

Corner, Argentina. Conceded by Vincent Enyeama.

49:07

Attempt saved. Ángel Di María (Argentina) left footed shot from outside the box is saved in the top left corner.

47:59 Booking

Booking Kenneth Omeruo (Nigeria) is shown the yellow card for a bad foul.

47:56

Ezequiel Lavezzi (Argentina) wins a free kick on the right wing.

47:56

Foul by Kenneth Omeruo (Nigeria).

46:52 Goal scored

Goal! Goal! Nigeria 2, Argentina 2. Ahmed Musa (Nigeria) right footed shot from the centre of the box to the bottom left corner. Assisted by Emmanuel Emenike.

46:01

Javier Mascherano (Argentina) wins a free kick in the defensive half.

46:01

Foul by Michel Babatunde (Nigeria).

45:00

Second Half begins Nigeria 1, Argentina 2.

45:00 +2:07 Half time

Half Time First Half ends, Nigeria 1, Argentina 2.

45:00 +0:55 Goal scored

Goal! Goal! Nigeria 1, Argentina 2. Lionel Messi (Argentina) from a free kick with a left footed shot to the top right corner.

44:38

Lionel Messi (Argentina) wins a free kick in the attacking half.

44:38

Foul by Kenneth Omeruo (Nigeria).

43:31

Corner, Argentina. Conceded by Vincent Enyeama.

43:29

Attempt saved. Lionel Messi (Argentina) left footed shot from outside the box is saved in the top right corner.

42:27

Ezequiel Lavezzi (Argentina) wins a free kick on the right wing.

42:27

Foul by John Obi Mikel (Nigeria).

38:44

Corner, Argentina. Conceded by Vincent Enyeama.

38:41

Attempt saved. Federico Fernández (Argentina) header from the centre of the box is saved in the top left corner. Assisted by Ángel Di María with a cross.

38:17

Corner, Argentina. Conceded by Emmanuel Emenike.

37:44

Federico Fernández (Argentina) wins a free kick in the defensive half.

37:44

Foul by Joseph Yobo (Nigeria).

37:18

Delay over. They are ready to continue.

37:15 Substitution

Substitution Substitution, Argentina. Ezequiel Lavezzi replaces Sergio Agüero because of an injury.

36:22

Delay in match Sergio Agüero (Argentina) because of an injury.

35:12

Foul by Javier Mascherano (Argentina).

35:12

Emmanuel Emenike (Nigeria) wins a free kick on the right wing.

32:35

Foul by Gonzalo Higuaín (Argentina).

32:35

Vincent Enyeama (Nigeria) wins a free kick in the defensive half.

31:59

Corner, Argentina. Conceded by Juwon Oshaniwa.

31:57

Attempt blocked. Sergio Agüero (Argentina) right footed shot from the right side of the box is blocked.

30:22

Attempt missed. Marcos Rojo (Argentina) header from the left side of the six yard box is close, but misses to the left. Assisted by Ángel Di María with a cross following a corner.

29:40

Corner, Argentina. Conceded by Vincent Enyeama.

29:37

Attempt saved. Ángel Di María (Argentina) left footed shot from outside the box is saved in the bottom right corner. Assisted by Lionel Messi.

28:45

Javier Mascherano (Argentina) wins a free kick in the defensive half.

28:45

Foul by Emmanuel Emenike (Nigeria).

26:25

Attempt missed. Peter Odemwingie (Nigeria) left footed shot from outside the box is just a bit too high. Assisted by Efe Ambrose.

20:48

Attempt blocked. Ogenyi Onazi (Nigeria) right footed shot from outside the box is blocked. Assisted by Efe Ambrose.

18:42

Lionel Messi (Argentina) wins a free kick in the attacking half.

18:42

Foul by Juwon Oshaniwa (Nigeria).

16:05

Corner, Argentina. Conceded by Ogenyi Onazi.

14:32

Ángel Di María (Argentina) wins a free kick in the attacking half.

14:32

Foul by Ogenyi Onazi (Nigeria).

9:28

Sergio Agüero (Argentina) wins a free kick in the attacking half.

9:28

Foul by Juwon Oshaniwa (Nigeria).

8:35

Attempt missed. Gonzalo Higuaín (Argentina) left footed shot from a difficult angle on the left is close, but misses to the left. Assisted by Lionel Messi with a through ball.

8:09

Attempt saved. Ángel Di María (Argentina) left footed shot from outside the box is saved in the centre of the goal. Assisted by Fernando Gago.

7:47

Marcos Rojo (Argentina) wins a free kick in the defensive half.

7:47

Foul by Emmanuel Emenike (Nigeria).

3:47 Goal scored

Goal! Goal! Nigeria 1, Argentina 1. Ahmed Musa (Nigeria) right footed shot from the left side of the box to the bottom right corner. Assisted by Michel Babatunde.

2:26 Goal scored

Goal! Goal! Nigeria 0, Argentina 1. Lionel Messi (Argentina) left footed shot from the centre of the box to the high centre of the goal.

2:24

Attempt saved. Ángel Di María (Argentina) left footed shot from the left side of the box is saved in the bottom left corner. Assisted by Javier Mascherano.

0:29

Offside, Argentina. Pablo Zabaleta tries a through ball, but Sergio Agüero is caught offside.

0:00

First Half begins.

0:00

Lineups are announced and players are warming up.

Live data and text provided by our data suppliers