Monday 20 January 2020 11:23, UK
Celtic will travel to Scottish League One side Clyde, while Rangers are drawn away to Hamilton Academical in the Scottish Cup fifth round.
Semi-professional team Clyde's reward for beating Bonnyrigg Rose Athletic on Saturday is the opportunity to host Celtic at Broadwood Stadium in February.
Defending champions Celtic progressed with a 2-1 win at Partick Thistle on Saturday evening as Leigh Griffiths scored his first goal in over five months.
Rangers will face an away tie at Hamilton following the 33-time winners' 2-0 Friday night victory against Stranraer.
Another Glasgow club, BSC Glasgow, who ply their trade in the fifth tier of Scottish football, will host either Dundee United or Hibernian after the two sides were forced to a replay following their 2-2 draw on Sunday.
It is BSC Glasgow's first time making the fifth round of the competition in their six-year history as a club.
Elsewhere, Aberdeen will host Kilmarnock in an all-Premiership fixture, while Hearts will travel to either Arbroath or Falkirk, who were sent to a replay after their goalless draw.
All ties will be played on the weekend of 8/9 February.
Scottish Cup fifth round draw:
Inverness Caledonian Thistle vs Livingston
Clyde vs Celtic
BSC Glasgow vs Dundee United/Hibernian
St Mirren vs Motherwell
Ayr United vs St Johnstone
Aberdeen vs Kilmarnock
Hamilton Academical vs Rangers
Arbroath/Falkirk vs Hearts