Heart of Midlothian will face either Benfica or St Gallen in the Europa League third qualifying round.
This will only happen if they lose to Sturm Graz in the Champions League. The Jambos learned this in Monday's draw in Nyon.
The potential ties are set for August 6 and 13. Benfica finished third in last season's Primeira Liga and faced Hearts in the European Cup in 1960. St Gallen, who were runners-up in their domestic league, would also be a tough match.
Read more
- Hearts learn potential Champions League opponents, add new striker to squad list
- Ex-Celtic star labels Argentina's behaviour 'disgusting' after World Cup final
- Wayne Rooney delivers X-rated verdict on World Cup final half-time show
Hearts are currently focused on their Champions League qualifier against Sturm Graz. The first leg takes place in Austria, with the return at Tynecastle on August 11.
If they progress, Hearts will face either Fenerbahce or Gornik Zabrze in the next round of Champions League qualifiers.
Even if they are defeated, the Europa League route still offers a tough test.