Alves played all the games and minutes at the Euro 2012 tournament, starring alongside former Porto teammate Pepe. In the semi-finals, against Spain, he missed his penalty shootout attempt in a 4–2 loss.