Latvia's victory means that they will be promoted to the UEFA Nations League.
League C of the UEFA Nations League was promoted by Latvia after they were held to a draw by Andorra this afternoon.
Dainis Kazakevicss team went into their last match of the season with a two-point lead over Moldova at the top of Group D1 and knew that their fate was in their own hands.
Just avoiding defeat against an Andorra side they beat 3-0 in June would secure top spot, but they made their supporters sweat courtesy of late goals in both of the groups games today.
Vladislavs Gutkovskis scored for Latvia in the second half. They looked like they would win until Andorra scored a late equaliser.
Albert Rosas equalizer for the hosts meant that they could not afford another slip-up in their other game against Moldova. Two quickfire goals late on for Moldova in the other game meant that they could not afford another slip-up.
Latvia finished first in the group because of their better record than Moldova. Moldova slate show in Chisnau was enough to finish second, with the two teams tied on points.
Victor Stina’s second goal in the final seconds of the game at least ensured a winning end to the campaign for Moldova, seeing Liechtenstein fall agonisingly short of their first point of the group in the process.