 A regular starter during the 2010 FIFA World Cup qualifiers, Alves headed the winner in injury time for the final 2–1 win in Albania on 6 June 2009, allowing Portugal to reach the play-offs.There, in the first leg in Lisbon, he also found the net (the game's only goal) against Bosnia and Herzegovina, in an eventual 2–0 aggregate qualification; he also played all the matches and minutes in the finals in South Africa, in an eventual round-of-16 exit.Alves played all the games and minutes at the Euro 2012 tournament, starring alongside former Porto teammate Pepe.