 Cavani was one of the three over-age players selected by Uruguay for the 2012 Summer Olympics.At the 2013 FIFA Confederations Cup, Cavani equalised in the semi-final against the hosts and eventual champions Brazil, who eventually won 2–1.In the match for third place, he equalised twice against Italy, his second goal coming from a free kick, taking the game to penalties.