Cavan will open their All-Ireland championship campaign away to Mayo on the weekend of May 18th.
Galway’s two point win over Mayo means Galway will enter the group of death in group four with Donegal or Armagh, Dublin and Derry.
Mayo are now confirmed in group one with Tyrone, Cavan and the winner of the Ulster final between Armagh and Donegal.
Cavan and Mayo last met at the same stage of the tournament last year. Mayo ran out nine point winners.
Elsewhere, Kerry’s 4-20 to 21-point Munster final victory over Clare sealed their place in group two with Roscommon and Cork. The Leinster runners-up are the second seed team.
Roscommon will travel to Kerry on the weekend of May 18th for their opening group game. Davy Burke’s side will host Meath or Louth on the June bank holiday weekend.
Whereas, Roscommon will face Cork in a neutral venue two weeks later to round out the group phase.
Kerry’s victory also decided that Clare will enter group three with Monaghan, Down and the Leinster champions.