Sunday 21 January 2018 16:38, UK
Scottish Cup holders Celtic will face Partick Thistle in a Glasgow derby in the fifth round of the competition.
The Hoops comfortably defeated Brechin City 5-0 in the previous round to set up a home tie against Thistle, who qualified for the fifth round after beating Queen of the South 2-1 at Palmerston Park.
Rangers will face League One side Ayr United in the fifth round if they defeat Highland Football League club Fraserburgh on January 31.
Hearts have been rewarded with a home tie against either Albion Rovers or St Johnstone after defeating rivals Hibernian 1-0 in the Edinburgh derby on Sunday afternoon.
Last season's runners-up Aberdeen will face New Firm rivals Dundee United at Pittodrie, while Dundee will take on either Inverness or Motherwell.
The lowest ranked side left in the competition, Brora Rangers, travel to face Kilmarnock after beating Stranraer.
Meanwhile, Highland League sides Formartine United and Cove Rangers will battle it out in the fourth round to face either Livingston or Falkirk.
All fifth round matches are due to be played on the weekend of February 10-11.
Full fifth round draw
Formartine United or Cove Rangers v Livingston or Falkirk
Greenock Morton v Peterhead or Dumbarton
Hearts v Albion Rovers or St Johnstone
Kilmarnock v Brora Rangers
Ayr United v Fraserburgh or Rangers
Aberdeen v Dundee United
Dundee or Inverness v Motherwell
Celtic v Partick Thistle