Wales will face Slovenia in a two-leg play-off next March to maintain their top-flight status in the Nations League.
Craig Bellamy's side face the relegation play-off after finishing bottom of Group A4, while Slovenia were runners-up in B1.
The first leg will be played between March 25-27 and the second between March 28-30. Wales will have home advantage in the second leg.
The winner will play in League A for the next edition of the Nations League, while the loser will be in League B.
Wales have only played Slovenia once before, a goalless friendly in Swansea in 2005.
Slovenia lost only once in their Nations League campaign, 2-1 away to group winners Switzerland, and took four points off Scotland, who finished third.
They drew 0-0 at home against the Swiss and Scotland, who they beat 2-1 in Glasgow last month.
Bostjan Cesar's side also beat North Macedonia 2-0 at home and 3-0 away in their final game earlier this week.
Wales' only victory was 2-1 at home to Norway in October. They were beaten in Oslo and home and away by both Portugal and Denmark.
Wales' Nations League campaign boosts Bellamy's belief
Portugal hold off bold Wales in five-goal thriller
How promotion, relegation and knockouts work in Nations League




