On 31 May 2014, Ramírez was named in Uruguay's squad for the 2014 FIFA World Cup. He made his tournament debut in the last group game against Italy on 24 June, replacing Cristian Rodríguez after 78 minutes. Three minutes later he supplied the cross from which Diego Godín scored the only goal of the game, putting Uruguay through to the knock-out stages. After missing the Copa América due to a hamstring injury, Ramírez played his first game for Uruguay in a year in a 3–1 win over Trinidad and Tobago and was included in the Copa América Centenario squad, where he played all three matches.