City will also face a battle of Britain with Brendan Rodgers’ Celtic in Group C as well as a clash with German side Borussia Monchengladbach.
Despite a tricky draw, director of football Txiki Begiristain insists City will not fear their opponents.
He said: “It is not a nightmare draw because we are in a wonderful competition – but it is a very tough group.
“Pep knows the group very well – obviously Barcelona but also Borussia Monchengladbach from his time in Germany.”
The highlight of the draw was no doubt Guardiola heading back to the Nou Camp.