 On 13 June, Valdivia scored his first World Cup goal during Chile's opening group match against Australia, netting the team's second goal in a 3–1 victory.The following two group games he came as substitute against Spain and the Netherlands, being an unused substitute in the round of 16 game against Brazil, which eliminated Chile on the penalties after 1–1 at Estádio Mineirão.The last fact motivated Valdivia to announce his international retirement, communicated via Twitter on 17 July 2014.