Aberdeen have been drawn to play against FK Daugava Riga in the Europa League first qualifying round.
The Dons will be in competitive action at home on July 3 and then away on July 10.
They will also be the first Scottish side to take to the field in a competitive match this season.
Manager Derek McInnes had his players back for pre-season training early to prepare for this tie and he will now pit his wits against Daugava boss Armand Zeiberliņš.
Aberdeen, who won the Cup Winners’ Cup in 1983, are returning to European football for the first time since the 2009-10 season.
That campaign they lost their only tie to Sigma Olomouc 8-1 on aggregate.
The previous season they had reached the group stage of the then UEFA Cup, facing Panathinaikos, Lokomotiv Moscow, Atletico Madrid and FC Copenhagen in the group stages.
They qualified from their section before being eliminated by Bayern Munich in the last 32.
FK Daugava Riga, not to be confused with the similiarly named Daugava Daugavpils, are currently seventh in the 10-team Latvian Higher League.
With 17 games played, they are 23 points behind leaders Skonto Riga and eight points above the relegation play-off spot.