Diego Costa made a successful comeback from injury as David Villa scored twice to give Spain victory over El Salvador in their final World Cup warm-up game.

Costa, who looks set to join Chelsea from Atletico Madrid, had not played since aggravating a hamstring injury in the Champions League final.

The striker played for 73 minutes and was fouled for an early penalty which Cesc Fabregas missed.

Villa came off the bench to increase his record goal tally for Spain to 58.

The 32-year-old, who announced this week he was leaving Atletico Madrid to join Major League Soccer team New York City, headed in after an hour and then fired home in the sixth minute of injury time.

"We know that Villa, in tight spaces, is one of the best forwards in the world," said coach Vicente Del Bosque.

"The feelings are good and we are optimistic about the start of the competition."

Spain start their World Cup campaign against the Netherlands on 13 June and also face Chile and Australia in Group B.

Lineup, Bookings (0) & Substitutions (11)

El Salvador

  • 01 Hernandez
  • 02 Garcia
  • 13 Larin
  • 07 Ceren
  • 04 Barrios (Blanco - 87' )
  • 05 Mendoza
  • 12 Álvarez Hernández (Alas - 65' )
  • 06 Menjivar (Aguila - 83' )
  • 09 Burgos
  • 08 Santamaria (Renderos - 57' )
  • 14 Flores Mejia (Molina - 75' )

Substitutes

  • 03 Molina
  • 10 Alas
  • 11 Aguila
  • 15 Renderos
  • 16 Ceren
  • 17 Blanco
  • 18 Carrillo
  • 19 Lemus
  • 20 Sosa

Spain

  • 01 Casillas (de Gea - 83' )
  • 05 Juanfran
  • 18 Alba
  • 14 Alonso (Busquets - 68' )
  • 04 Javi Martínez
  • 15 Ramos
  • 17 Koke
  • 10 Fábregas (Villa - 45' )
  • 19 Diego Costa (Xavi - 74' )
  • 11 Pedro (Cazorla - 45' )
  • 06 Iniesta (Silva - 45' )

Substitutes

  • 02 Albiol
  • 03 Piqué
  • 07 Villa
  • 08 Xavi
  • 09 Torres
  • 12 de Gea
  • 13 Mata
  • 16 Busquets
  • 20 Cazorla
  • 21 Silva
  • 22 Azpilicueta
  • 23 Reina
Ref: Baldomero Toledo

Match Stats

Shots

2 23

On target

0 9

Corners

0 10

Fouls

8 6

Live Text Commentary

Full time

Full Time Match ends, El Salvador 0, Spain 2.

90:00 +0:15 Full time

Full Time Second Half ends, El Salvador 0, Spain 2.

89:39

Foul by Santiago Cazorla (Spain).

89:39

Moises Xavier Garcia (El Salvador) wins a free kick in the defensive half.

87:00 Goal scored

Goal! Goal! El Salvador 0, Spain 2. David Villa (Spain) right footed shot from the centre of the box to the bottom left corner. Assisted by David Silva.

86:06 Substitution

Substitution Substitution, El Salvador. Mark Blanco replaces Jonathan Barrios.

85:29

Attempt missed. Sergio Busquets (Spain) right footed shot from more than 35 yards is too high. Assisted by Jordi Alba.

85:11

Offside, El Salvador. Alexander Larin tries a through ball, but Rafael Edgardo Burgos is caught offside.

84:39

Offside, Spain. Xavi tries a through ball, but David Villa is caught offside.

82:46 Substitution

Substitution Substitution, El Salvador. Jonathan Aguila replaces Richard Menjivar.

82:30 Substitution

Substitution Substitution, Spain. David de Gea replaces Iker Casillas.

80:01

Offside, Spain. Koke tries a through ball, but Juanfran is caught offside.

79:33

Sergio Busquets (Spain) hits the bar with a right footed shot from outside the box. Assisted by Xavi.

78:36

Attempt saved. Santiago Cazorla (Spain) left footed shot from the centre of the box is saved in the centre of the goal.

77:59

Corner, Spain. Conceded by Moises Xavier Garcia.

76:21

Foul by Koke (Spain).

76:21

Néstor Raul Renderos (El Salvador) wins a free kick in the attacking half.

74:11 Substitution

Substitution Substitution, El Salvador. Milton Molina replaces Andres Flores Mejia.

73:41

Foul by Sergio Ramos (Spain).

73:41

Jonathan Barrios (El Salvador) wins a free kick in the defensive half.

73:25 Substitution

Substitution Substitution, Spain. Xavi replaces Diego Costa.

72:45

Corner, Spain. Conceded by Andres Flores Mejia.

71:37

Corner, Spain. Conceded by Jaime Alas.

67:10 Substitution

Substitution Substitution, Spain. Sergio Busquets replaces Xabi Alonso.

66:37

Attempt missed. David Villa (Spain) left footed shot from the left side of the six yard box is too high.

66:36

Attempt saved. Diego Costa (Spain) header from the centre of the box is saved in the top centre of the goal. Assisted by Juanfran with a cross.

64:41 Substitution

Substitution Substitution, El Salvador. Jaime Alas replaces Arturo Álvarez.

64:17

Foul by David Silva (Spain).

64:17

Arturo Álvarez (El Salvador) wins a free kick in the defensive half.

63:43

Corner, Spain. Conceded by Henry Hernandez.

63:12

Santiago Cazorla (Spain) wins a free kick on the left wing.

63:12

Foul by Arturo Álvarez (El Salvador).

62:25

Attempt saved. David Villa (Spain) left footed shot from the centre of the box is saved in the top centre of the goal. Assisted by Santiago Cazorla.

59:44 Goal scored

Goal! Goal! El Salvador 0, Spain 1. David Villa (Spain) header from the centre of the box to the centre of the goal. Assisted by Sergio Ramos with a headed pass following a corner.

59:29

Corner, Spain. Conceded by Arturo Álvarez.

57:03

Attempt missed. Jordi Alba (Spain) left footed shot from a difficult angle on the left misses to the right.

57:00

Attempt blocked. Santiago Cazorla (Spain) right footed shot from the centre of the box is blocked. Assisted by David Silva.

56:11 Substitution

Substitution Substitution, El Salvador. Néstor Raul Renderos replaces Kevin Santamaria.

54:38

Delay over. They are ready to continue.

53:40

Delay in match Henry Hernandez (El Salvador) because of an injury.

52:54

Offside, Spain. David Silva tries a through ball, but David Villa is caught offside.

52:11

Corner, Spain. Conceded by Alexander Mendoza.

52:05

Attempt blocked. Santiago Cazorla (Spain) right footed shot from outside the box is blocked.

49:37

Corner, Spain. Conceded by Jonathan Barrios.

47:29

Attempt blocked. Kevin Santamaria (El Salvador) left footed shot from outside the box is blocked.

45:00

Second Half begins El Salvador 0, Spain 0.

45:00 Substitution

Substitution Substitution, Spain. David Villa replaces Francesc Fábregas.

45:00 Substitution

Substitution Substitution, Spain. Santiago Cazorla replaces Pedro.

45:00 Substitution

Substitution Substitution, Spain. David Silva replaces Andrés Iniesta.

45:00 +0:30 Half time

Half Time First Half ends, El Salvador 0, Spain 0.

45:00 +0:17

Attempt missed. Pedro (Spain) right footed shot from outside the box is high and wide to the right. Assisted by Francesc Fábregas following a corner.

44:58

Corner, Spain. Conceded by Moises Xavier Garcia.

37:48

Attempt missed. Sergio Ramos (Spain) right footed shot from outside the box is close, but misses the top right corner from a direct free kick.

36:52

Francesc Fábregas (Spain) wins a free kick in the attacking half.

36:52

Foul by Richard Menjivar (El Salvador).

35:41

Attempt missed. Francesc Fábregas (Spain) header from the left side of the box misses to the left. Assisted by Andrés Iniesta with a through ball.

32:56

Attempt missed. Xabi Alonso (Spain) right footed shot from more than 35 yards is high and wide to the left. Assisted by Koke following a set piece situation.

32:48

Juanfran (Spain) wins a free kick in the defensive half.

32:48

Foul by Kevin Santamaria (El Salvador).

31:45

Attempt missed. Andrés Iniesta (Spain) right footed shot from long range on the left is high and wide to the left. Assisted by Jordi Alba.

29:56

Offside, Spain. Francesc Fábregas tries a through ball, but Juanfran is caught offside.

26:50

Attempt blocked. Diego Costa (Spain) left footed shot from the centre of the box is blocked. Assisted by Francesc Fábregas with a through ball.

25:09

Attempt missed. Alexander Larin (El Salvador) left footed shot from outside the box is high and wide to the left from a direct free kick.

24:30

Foul by Javi Martínez (Spain).

24:30

Rafael Edgardo Burgos (El Salvador) wins a free kick in the attacking half.

24:08

Attempt blocked. Pedro (Spain) right footed shot from the centre of the box is blocked. Assisted by Francesc Fábregas.

20:54

Foul by Xabi Alonso (Spain).

20:54

Richard Menjivar (El Salvador) wins a free kick in the defensive half.

20:01

Delay over. They are ready to continue.

19:05

Delay in match Jordi Alba (Spain) because of an injury.

18:37

Jordi Alba (Spain) wins a free kick in the attacking half.

18:37

Foul by Arturo Álvarez (El Salvador).

15:49

Corner, Spain. Conceded by Jonathan Barrios.

14:06

Javi Martínez (Spain) wins a free kick in the defensive half.

14:06

Foul by Rafael Edgardo Burgos (El Salvador).

10:37

Sergio Ramos (Spain) wins a free kick in the defensive half.

10:37

Foul by Rafael Edgardo Burgos (El Salvador).

10:12

Attempt saved. Sergio Ramos (Spain) right footed shot from outside the box is saved in the bottom left corner.

9:14

Attempt saved. Francesc Fábregas (Spain) left footed shot from the left side of the box is saved in the bottom right corner. Assisted by Andrés Iniesta.

8:59

Attempt blocked. Diego Costa (Spain) right footed shot from the centre of the box is blocked. Assisted by Pedro.

7:04

Andrés Iniesta (Spain) wins a free kick in the attacking half.

7:04

Foul by Arturo Álvarez (El Salvador).

5:41

Corner, Spain. Conceded by Henry Hernandez.

5:37

Attempt saved. Pedro (Spain) left footed shot from the centre of the box is saved in the centre of the goal. Assisted by Xabi Alonso with a through ball.

3:19

Penalty missed! Bad penalty by Francesc Fábregas (Spain) right footed shot is just a bit too high. Francesc Fábregas should be disappointed.

2:25

Penalty Spain. Diego Costa draws a foul in the penalty area.

2:25

Penalty conceded by Henry Hernandez (El Salvador) after a foul in the penalty area.

0:00

First Half begins.

0:00

Lineups are announced and players are warming up.

Live data and text provided by our data suppliers