Cork City will face Legia Warsaw in the Champions League first qualifying round.
Embarking on their first Champions League campaign in 12 years, City will host the Polish champions in the first leg on July 10/11 before travelling to Warsaw for the return encounter the following week (July 17/18).
City and Legia were in luck in a later draw. The losers of the tie will receive a bye to the third qualifying round of the Europa League, rather than the second.
Legia last qualified for the group stages in 2016, after defeating Dundalk in the final qualifying round by 3-1 on aggregate.
They managed a memorable 3-3 draw with eventual champions Real Madrid that year.
Meanwhile, Northern Ireland champions Crusaders will face Ludogorets Razgrad.
The seven-in-a-row Bulgarian league winners, who qualified for the group stages in 2014 and 2016, will host the first leg.
Scottish champions Celtic will travel to Armenia for their first leg against Alashkert, before the return leg in Glasgow.