Celtic and Rangers have both been handed home ties in the fifth round of the Scottish Cup.
Scottish Premiership leaders Celtic will play Inverness Caledonian Thistle, who beat the Hoops in controversial circumstances on their way to winning the competition in 2015.
Rangers, meanwhile, will play Greenock Morton at Ibrox, after their late win over Motherwell.
Holders Hibernian face a Sky Live Edinburgh derby at Tynecastle after Hearts progressed from their fourth-round replay against Raith Rovers.
Aberdeen travel to Ross County and St Johnstone play host to Partick Thistle in the draw's other two all-Scottish Premiership ties.
Championship strugglers St Mirren's reward for their surprise win at Premiership side Dundee is a trip to East Fife.
The full fifth-round draw:
Ayr United v Clyde
Celtic v Inverness Caledonian Thistle
Dunfermline Athletic v Hamilton Academical
East Fife v St Mirren
Hearts v Hibernian
Rangers v Greenock Morton
Ross County v Aberdeen
St Johnstone v Partick Thistle
Ties to be played weekend of February 11-12