Stuart Pearce’s Team GB men have been drawn against Senegal, Uruguay and United Arab Emirates, while Hope Powell’s women were placed in a group with New Zealand, Cameroon and Brazil.
Other highlights in the men’s tournament saw Spain drawn against Japan, Morocco and Honduras while Brazil will take on Egypt, Belarus and New Zealand. See the full men's competition draw and schedule.
In the women’s tournament, the USA – gold medallists in 2008 – will face Colombia, France and North Korea, while Japan were matched with Canada, Sweden and South Africa. See the full women's competition draw and schedule.
The tournament will kick off two days before the London 2012 Opening Ceremony when Great Britain's women's team play New Zealand at the Millennium Stadium in Cardiff.
London 2012 Organising Committee Chair Seb Coe said: 'Now that the draws for the Olympic Football Tournament have taken place, fans can begin to get excited about the amazing spectacle, the incredible teams and world class players – in both the men’s and women’s tournaments – that will be coming to Great Britain this summer.
'With matches taking place across England as well as in Scotland and Wales, and with tickets still available, football also provides people with a unique opportunity to still enjoy the Olympic experience this summer.'
Tickets for the Football tournament will go on sale in early May.
Group A: Great Britain (A1), Senegal (A2), United Arab Emirates (A3), Uruguay (A4)
Group B: Mexico (B1), South Korea (B2), Gabon (B3), Switzerland (B4)
Group C: Brazil (C1), Egypt (C2), Belarus (C3), New Zealand (C4)
Group D: Spain (D1), Japan (D2), Honduras (D3), Morocco (D4)
Group E: Great Britain (E1), New Zealand (E2), Cameroon (E3), Brazil (E4)
Group F: Japan (F1), Canada (F2), Sweden (F3), South Africa (F4)
Group G: USA (G1), France (G2), Colombia (G3), Korea DPR (G4)