Hearts and Hibs have been drawn to meet at Tynecastle in the fourth round of the William Hill Scottish Cup.
The tie, due to be played on the weekend of January 20-21, will be the third year in succession the Capital rivals have met in the competition with Hibs having prevailed in fifth-round replays in the last two seasons.
There are another two all-Premiership ties, with Motherwell hosting Hamilton in a Lanarkshire derby and Ross County travelling to Kilmarnock.
Highland League outfit Fraserburgh have been rewarded for beating Spartans on Saturday with a dream home clash with Rangers.
Full draw: Dunfermline v Morton; Ayr v Arbroath; Albion Rovers v St Johnstone; Motherwell v Hamilton; Hearts v Hibs; Livingston v Falkirk; Dundee v Inverness; Formartine United v Cove Rangers; Montrose or Queen of the South v Partick Thistle; Celtic v Brechin; Peterhead v Dumbarton; East Fife v Brora Rangers; Alloa v Dundee United; Fraserburgh v Rangers; Aberdeen v St Mirren; Kilmarnock v Ross County.
(Ties to be played weekend of January 20-21)