24 teams were drawn into four groups of six teams, where they played each other twice. The top four teams advanced to the knockout stage. The draw took place on 27 June 2014, at 18:00 local time, in Vienna, Austria.
