Scottish Premiership leaders Celtic have been handed an away tie at Dundee in the fifth round of the Scottish Cup.
Ronny Deila's side coasted past Hearts on Sunday to reach the last 16 but they have been provided with a testing visit to Dens Park early next year.
Old Firm rivals Rangers, who defeated Kilmarnock in the fourth round, will host Raith Rovers while Inverness Caledonian Thistle will travel to Partick Thistle should they overcome St Mirren in a replay.
Spartans, the lowest-ranked team left in the competition, will play either Berwick Rangers or Albion Rovers.
All of the ties will be played on the weekend of February 7-8.
Full draw: Queen of the South vs. St Johnstone, Rangers vs. Raith Rovers, Dundee vs. Celtic, Hibernian vs. Arbroath, Falkirk vs. Annan Athletic or Brechin City, Stranraer or Dunfermline Athletic vs. Dundee United, Patrick Thistle vs. St Mirren or, Inverness Caledonian Thistle, Spartans vs. Berwick Rangers or Albion Rovers