Hungary moved above opponents Latvia and the Faroe Islands to third in European World Cup Qualifying Group B with a 2-0 win in Riga.
Adam Gyurcso gave the Hungarians a ninth-minute lead, firing high down the middle of goal from the centre of the penalty box.
The goal aside, the first half was fairly even but Hungary began to dominate after the break, Gyurcso hitting a post from the edge of the box around the hour.
Adam Szalai rewarded the pressure in the 77th minute with a close-range header from Balazs Dzsudzsak's right-sided corner.
Latvia's Arturs Karasausks went close for Latvia late on, Peter Gulacsi tipping his shot over, as Hungary held on for their first win of the campaign.