Once you have seen Rayquaza at the top of the Sky Pillar, head to Sootopolis City — the same place where Groudon and Kyogre are rampaging. That is where the next part of the encounter plays out.