Portugal overcame fellow FIFA World Cup contenders Mexico 1-0 in their penultimate friendly match before travelling to Brazil, with Bruno Alves heading the decisive goal in the final minute.
Still missing the injured Cristiano Ronaldo, Pepe and Raul Meireles, Portugal started the game in Boston, USA, with four changes from the team that draw 0-0 with Greece on 31 May. Fábio Coentrão, Luís Neto, João Moutinho and Vieirinha all came into the side, but it was veteran defender Bruno Alves who made the telling contribution as time ebbed away.
Paulo Bento's men began on the front foot too, and it was Vieirinha who first tested Mexico goalkeeper José de Jesús Corona. Corona was then called back into action midway through the first half, denying Éder, before Mexico responded with a cross by Miguel Layún that almost surprised Eduardo in the Portugal goal.
The pace increased in the second half and both teams went close in the first few minutes, though it was Mexico who began to emerge as the most threatening force. Andrés Guardado nearly scored with a powerful left-footed effort, before Eduardo produced the save of the night, keeping out Héctor Herrera's point-blank effort.
The Portugal goalkeeper also saved from substitute Alan Pulido, yet it was the European side who were left celebrating at the final whistle, notching their winner against the run of play. Moutinho sent in a free-kick and Bruno Alves did the rest with an excellent header.
Portugal will end their preparations for the World Cup against the Republic of Ireland in New Jersey on Wednesday. They then fly to Brazil, where they will begin their campaign in Group G against Germany on June 16.