post on his Instagram account that he would leave Barcelona for the second time, having made 408 competitive appearances for the club in total, the second most by a player from abroad, with only Lionel Messi having played more. UNAM On 23 July 2022, Alves signed a one-year contract with Liga MX club UNAM. For the 2022–23 Torneo Clausura, Alves decided to change his shirt number from 33 to 77. On 20 January 2023, following his arrest for sexual assault allegation, UNAM decided to end Alves' contract with the club. International career Early career and 2007 Copa América title Alves made his Brazil debut as a substitute in an unofficial friendly match against Kuwaiti club Al-Kuwait Selection on 7 October 2006. Three days later, he earned his first international cap in a friendly against Ecuador. He was included in Brazil's team for the 2007 Copa América. He appeared in four matches including the final against Argentina on 15 July, where he gave an assist to Roberto Ayala's own goal and scored a goal himself in the 3–0 victory. 2009 Confederations Cup title, 2010 World Cup, and 2011 Copa América 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. 2013 Confederations Cup title and 2014 World Cup Alves was part of the 23 players called by coach Luiz Felipe Scolari to play in the 2013 FIFA Confederations Cup on home soil. He started in Brazil's 3–0 victory over Spain in the final on 30 June, at the Maracanã Stadium. On 7 May 2014, Alves was named to Brazil's squad for the 2014 FIFA World Cup on home soil. He lost his position as a starter during the competition due to poor performances. After Brazil defeated Colombia 2–1 in the quarter-finals, Alves and teammate David Luiz were applauded for