Derry will take on title holders, Tyrone, in the quarter-finals of the Ulster Championship in 2017.
Derry will be hoping for a different result to the one at Celtic Park in 2016 when Tyrone beat them 3-14 to 0-12 in the quarter-final of the Ulster Championship.
Tyrone beat Donegal in the 2016 Ulster final but were eliminated from the All-Ireland Championship by Mayo.
The winner of the game between Derry and Tyrone will take on the victor of Donegal v Antrim.
The draw also sees Armagh face-off against Down and Monaghan or Fermanagh will take on Cavan.