The draw has been made for the All-Ireland round-robin series.
Teams discovered their opponents in both the Sam Maguire and Tailteann Cups shortly after lunchtime on Tuesday.
All-Ireland champions Kerry will face the Leinster runners-up, Mayo and Cork if they beat Clare in this Sunday's Munster final, while they will take on the Ulster champions, Monaghan and Donegal if defeated in the decider by the Banner County.
Meanwhile, 2021 All-Ireland champions Tyrone will come up against the champions of Connacht, the Ulster runners-up and Westmeath after their Ulster Championship defeat to Monaghan.
And in the Tailteann Cup, last year's beaten finalists Cavan have been paired with Offaly, Laois and London while seven-time All-Ireland champions Meath will face Down, Tipperary and Waterford.
The opening round of Tailteann Cup games will take place on the weekend of May 13/14, with the All-Ireland group stage commencing a week later on the weekend of May 20/21.
Full fixtures are set to be confirmed this Friday.
Here's the draw in full:
All-Ireland Football Championship
Group 1
Munster winner (Kerry or Clare)
Leinster runners-up (Dublin or Louth)
Mayo
Cork
Group 2
Connacht winner (Galway or Sligo)
Ulster runners-up (Armagh or Derry)
Tyrone
Westmeath
Group 3
Leinster winners (Dublin or Louth)
Connacht runners-up (Galway or Sligo)
Roscommon
Kildare
Group 4
Ulster winners (Armagh or Derry)
Munster runners-up (Kerry or Clare)
Monaghan
Donegal
Tailteann Cup
Group 1
Cavan
Offaly
Laois
London
Group 2
Meath
Down
Tipperary
Waterford
Group 3
Limerick
Wicklow
Longford
Carlow
Group 4
Fermanagh
Antrim
Wexford
Leitrim
READ NEXT:
Katie Taylor opens up on infamous fifth round of Amanda Serrano fight one year on
GAA World in shock as fan passes away in crowd during Limerick v Clare
Roy Keane spotted in crowd at snooker World Championship final
Ted Walsh stuns colleagues by announcing retirement from RTE broadcasting
Davy Fitz says Waterford were 'absolutely terrible' in Cork defeat
Get the latest sports headlines straight to your inbox by signing up for free email alerts