Despite being the most expensive right-back in history at the time, he was initially unable to hold down a regular starting spot in the Brazilian national team, with Maicon being the first choice ahead of him. Alves came on as a substitute in the 2009 FIFA Confederations Cup semi-final against South Africa and scored the winner, a free-kick and a goal in the 88th minute in a 1–0 win. The following summer, he was named to Brazil's squad for the 2010 FIFA World Cup. He scored another long-range free-kick against Iran on 7 October 2010. The following year, Alves was included in Brazil's 23-man squad for the 2011 Copa América in Argentina.