Mascherano made 147 appearances for the Argentina national team and is the second most capped player in the country's history (after Lionel Messi). From his debut in 2003 until his retirement in 2018, he represented the nation at five Copa América tournaments, finishing runner-up in 2004, 2007, 2015, and 2016, and four FIFA World Cups, reaching the 2014 final. He twice won a gold medal at the Summer Olympics, in 2004 and 2008, becoming the first male footballer to achieve this double feat since Hungarian defender Dezső Novák in 1968. Between 2008 and 2011, Mascherano served as the captain of Argentina.