A derby between Edinburgh rivals Hibernian and Hearts was the pick of the ties determined by today's fourth-round draw for the Scottish Cup.
Holders Rangers were drawn away to St Johnstone, while Celtic will entertain another second-flight side in Dundee.
Rangers needed penalties to eliminate the Saints in last season's semi-finals, and face a tough test against a team leading their division.
Motherwell will play non-league opposition, with Mark McGhee's men facing a trip to the winners of the third-round game between Inverurie Locos and Vale of Leithen.
Scottish Cup, fourth-round draw
10 or 11 January 2009
Raith Rovers or Alloa Athletic-Aberdeen
Falkirk-Queen of the South
Airdrie-Elgin City or Spartans
Inverurie Locos or Vale of Leithen-Motherwell
Ross County or Dumbarton-Hamilton
Forfar or Stranraer-Forres Mechanics or Dalbeattie Star
East Stirlingshire-Dundee United
Lochee United or Ayr United-Kilmarnock
Edinburgh City or Brechin-St Mirren