The world of Agrabah is basically divided into two parts. The first part is Agrabah itself, where the Sultan's Palace is located. Sora and his party arrive in the Agrabah: Plaza here, where they are confronted by their first enemies in the world. Connecting through a door is Agrabah: Storage, with no enemies and a save point, as well as a few other goodies. Heading north from the Plaza heads to the Agrabah: Main Street; shimmying up the nearby pole will take Sora's group to Aladdin's House and another save point. Continuing north takes them to the Palace Gates, where the massive Pot Centipede battle begins. Heading west from Main Street sends them into the Agrabah: Alley, while entering the high entrance to the east goes into the Agrabah: Bazaar. These areas interconnect on many levels, both high and low.
Leaving the city initially takes Sora's group to the Desert, but once the Carpet joins them they can reach the Desert: Cave, where the Cave of Wonders Guardian, which serves as the cave's entrance, must be fought as a boss battle before the party is permitted to enter. Heading in, the group enters the Cave: Entrance, with a single boulder trap. Going forward leads them to the Cave: Hall, a massive room full of traps such as boulders, squirting water, and, of course, Heartless. Heading through the door on the opposite side leads to the Bottomless Hall, a narrow ledge next to a deep chasm. By dropping into the ravines throughout the Cave, Sora and his group are sent into a set of lower chambers. Continuing forward through the Bottomless Hall takes the party to the final room, the Treasure Room; it is from here that they eventually gain access to the Lamp Chamber and the Jafar boss battle. Below the Lamp Chamber is an unnamed room filled with lava and stone pillars.
The lower chambers are mostly full of water and are navigated by swimming. The Dark Chamber holds a save point, a handy place for making sure Aladdin is in your party to successfully gain all of the lower chamber treasures. The Relic Chamber, Hidden Room, and the Silent Chamber also hold various treasures and triggers that only Abu can access.
KH2
Agrabah itself takes on a much different appearance in Kingdom Hearts II. It only has two areas, but each of these areas are larger with many bridges and pits. Aside from the main city, the Bazaar holds many enemies, though no shops. However, the Peddler's Shop, the headquarters of the mischievous merchant who causes much of the chaos in the game, has a Moogle shop in it. The Palace can also be reached through the main city.
Going outside the Palace Walls gives Sora's group more options. The first, and in the beginning, only option available is the Cave of Wonders. However, the Cave of Wonders of Kingdom Hearts II is completely different. It has but one floor, divided into the Valley of Stone and the Stone Guardians. The focus of the Cave this time is the Chasm of Challenges. Here, the gang must defeat a number of Heartless in a short amount of time. If they succeed, they can enter the Treasure Room.
In the second part of the game, the other area from the Palace Walls opens up, the Sandswept Ruins, which can only be negotiated by Sora riding alone on Carpet. He can use Carpet to reach the Ruined Chamber, which helps he and his party unlock the secret of Jafar.