After starting out at Defensor, he was bought by Spanish club Villarreal in 2007. In the following years he competed in Spain and Italy, notably winning six Serie A titles with Juventus and the 2009 Champions League with Barcelona. He later had a brief spell in England with Southampton before returning to Italy in 2017; despite his ability, his career has been limited by several injuries.