Agrabah

"Welcome to Agrabah, city of mystery, of enchantment, and the finest merchandise this side of the bazaar, on sale today! Come on down!"

- The Peddler

Agrabah is the central location in the popular 1992 Disney film, Aladdin. It is located near the Jordan River (as the narrator tells during the first minutes of the film). Agrabah's ruler is the Sultan. The kingdom is constantly being rescued by its most famous residents Aladdin, Genie, Abu, Carpet, Iago and its very own Princess Jasmine.

Agrabah's most prominent feature is its palace, which was inspired by the Taj Mahal, located in Agra, India. Though commonly mistaken by many to be a palace, the Taj Mahal is actually a mausoleum (tomb) for a dead panguian (wife of a sultan, equivalent to a queen consort); coincidentally, the Sultan's wife is most likely dead as well.

Places of Interest

 * The Sultan's Palace: The home of the Sultan and many other famous residents of Agrabah including Jasmine, Aladdin, Abu, Magic Carpet, Genie, and even Jafar and Iago.
 * Bazaar: The marketplace where Aladdin and his sidekick Abu were usually found when scrapping for food and ducking from guards before they became royal. Now it is a popular destination for Aladdin, Jasmine and the others.
 * Desert: A large landscape located right outside Agrabah's gates. It is widely known as the Seven Deserts and holds many of the mysteries Agrabah is famous for.
 * Cave of Wonders: A large and mysterious cave in the shape of a tiger found in the middle of the desert. The cave holds many treasures and magical items, most notable Genie's magic lamp and the Magic Carpet.
 * The Royal Academy: A small but roomy one room school where Sharma and Jasmine teach.

Kingdom Hearts
The story starts with Jafar looking for Princess Jasmine, but Iago tells him that she is nowhere to be found. Maleficent turns up, telling him that Jasmine is essential for their plan. She also warns Jafar to be careful not to lose his heart, but Jafar shrugs it off, telling her that her 'concern is touching, but hardly necessary.' As Maleficent and Jafar move out to continue searching for Jasmine, the latter peeks out from behind a stall. Later, Sora and the gang meet Jasmine in the alley, before Jafar appears and kidnaps her. Just before she disappears, she tells Sora, Goofy, and Donald Duck to find Aladdin in the desert.

As they run out of the town and into the desert, they find the flying carpet, which takes them to the location of the Cave of Wonders, although the entrance is closed. There, Aladdin is stuck in a pit of sinking sand, and is being set upon by Heartless. Sora, Donald, Goofy, and Aladdin attack the Heartless, but there are too many. Aladdin pulls himself out of the sand and wishes that the Heartless were gone. Genie appears and makes them disappear. As they fly back to the town on the carpet, Genie talks about how he's a prisoner in the lamp, and Aladdin promises to set him free with his third wish.

Aladdin, Sora, Goofy and Donald confront Jafar in front of the palace, where he's with Jasmine. Aladdin uses his second wish to save Jasmine, but Iago steals the lamp, and Genie disappears, dropping Jasmine in a pot, which then becomes part of the Pot Centipede. Jafar creates. Jafar and Jasmine disappear, but the protagonists don't discover this until after the Pot Centipede is destroyed. They then run after Jafar who has run to the Cave of Wonders. The Cave's tiger-head guardian attacks them, having been possessed by the Heartless. As they fight it, Jafar and Jasmine are in the lamp room, where the former uses his first wish to reveal the Keyhole. Maleficent then appears, and Jafar suggests turning Riku against Sora. Sora, Aladdin, Goofy and Donald then run in, seeing Maleficent. She disappears quickly, while Jafar uses his second wish to get Genie to fight alongside him against Sora. when Sora defeats Jafar, he uses his last wish to turn himself into a genie. Sora attacks Iago to get him to drop Jafar's lamp, and rubs it, sending Jafar inside. Unbeknownst to Sora at the time, Riku has kidnapped Jasmine and taken her to Hollow Bastion.

The group discover Jasmine is missing, and Sora quickly seals the keyhole before more Heartless appear. They use the carpet to fly back to Agrabah, where Aladdin uses his final wish to set Genie free, who then joins Sora in order to find Jasmine.

Chain of Memories
Agrabah returns in the memories of Sora. Sora, Donald, and Goofy see Aladdin getting attacked by the Heartless. They help him, but become overpowered by the Heartless. Aladdin brings out his lamp and calls forth the Genie to get rid of the Heartless for his first wish. Genie appears and gets rid of the Heartless, leaving Aladdin with two wishes. Sora and the others decided to go with Aladdin to the palace. Along the way, Goofy asks Aladdin why he is going to the palace. He said that he needs to get the lamp to the palace right away. He had acquired the lamp from the Cave of Wonders. The Genie tells Aladdin that he had been in the lamp for a whopping two thousand years and he had grown tired of granting everyone's wishes. Aladdin promises to free Genie with his last wish, but before freeing the Genie, he wishes to be with Jasmine, the princess of Agrabah.

It is hard for a street rat like like Aladdin to get a chance to see Jasmine. He seeks help from Jafar, the royal vizier, to meet Jasmine. Genie thinks Aladdin can go see her as a prince. So they hurry to the palace. On their way, they see Jasmine getting attacked by Heartless. Aladdin has no choice but to use his second wish to save Jasmine. Genie gets rid of the Heartless, but more emerge. After they defeat the Heartless, Jafar appears and takes away the lamp. He plans to use the lamp to get Jasmine for himself. Jafar uses his first wish to bring Jasmine to him. Genie takes Jasmine and Jafar escapes. Aladdin has lost Jasmine and the lamp, but Sora tells him not to give up. Aladdin takes Sora's advice and comes up with an idea to get the lamp back. Sora, Donald, and Goofy follow Jafar to the palace. They are about to engage in battle when Aladdin appears. Jafar tells Genie to get rid of him. Genie punches Aladdin out of the way, but Genie takes this command as a wish and unbeknownst to Jafar, he uses up his second wish.

Jafar uses his final wish to become an all, powerful Genie. However, Sora gets the lamp back and seals Jafar in the lamp. Then, Aladdin uses his final wish to free Genie from the lamp. Aladdin decides that he wants Jasmine to see him for who he really is. This memory ends as Aladdin says goodbye to Sora, Donald, and Goofy.

358/2 Days
Roxas's first mission to a new world, outside of Twilight Town and The World that Never Was, begins on his twenty-sixth day in the Organization. He is dispatched to Agrabah with Xigbar, and together the two of them investigate the city, finding it is full of sand, the stores are empty, buildings seem to have been recently damaged, and lumber and rope can be seen all around the city alongside what looks like quick repairs. All this seems to be the result of sandstorms like the violent one currently raging out in the desert.

Xigbar and Roxas spy on Aladdin and Jasmine discussing the town's situation, and after finding a place where they can listen without being seen, they overhear that Aladdin has been working non-stop to shore up the city in preparation for the next sandstorm. Jasmine is worried about him, and suggests they ask the Genie for help - but Aladdin is determined to protect Agrabah with his own strength. He and Jasmine head off to continue their work.

Xigbar decides that there's no need to investigate the palace. He and Roxas are about to return to the Castle when Roxas is suddenly overcome by a strange vision, images of Xion, and a blonde girl drawing pictures in a white room. He falls over, unconscious.

Roxas takes over three weeks to recover from his sleep, and eventually returns to Agrabah. During a routine mission to release hearts from Heartless, he again comes across Jasmine and Aladdin worrying about an impending sandstorm and about the recent appearances of Heartless throughout the city. Roxas also sees Aladdin scolding Abu for stealing, but keeps out of sight and returns to the Castle once his mission is done.

Another three weeks later, Roxas is sent back to Agrabah with Axel. Upon arriving in the city, he's struck by a strange vision of a boy in red clothes, and feels as if the boy has once stood in the same spot that he has. What was meant to be a simple mission to release hearts is interrupted by the appearance of Pete, who seems to be searching for something. Axel decides on the spot to change their mission goal, but Roxas is apprehensive about ignoring his orders without permission. Axel assures him that someone as suspicious as this is worth checking out, so they conclude that they can destroy some Heartless afterwards. They sneak around the town, following Pete until he reveals a secret door to the desert, and a path to the Cave of Wonders. Axel says that discovering the Cave is enough work for the day, so after defeating the nearby Heartless, they head home.

Roxas returns with Xion to investigate the Cave three days later. They rescue Abu from a swarm of Heartless, and it turns out the small gemstone the monkey was carrying is a key to unlock the deeper rooms of the Cave. They fight their way through Heartless to a dead end, where they find a statue holding some kind of treasure. They are confronted by Pete, who attacks them, saying that they'll never get hold of the magic lamp that is rightfully his. Pete is defeated, but the noise and violence causes a cave-in, and Roxas and Xion escape to the desert.

There they suddenly find themselves face to face with a flying Carpet, and a magical being who introduces himself as the "Genie formerly of the magic lamp". The Carpet thought it recognized Roxas, but it discovers it knows neither.

The Genie explains that the two of them had been traveling the world, but had been worried about their friends at home and were on their way back to check up on Agrabah. The Genie is particularly worried about his best friend, "Al". Roxas not understanding the phrase "best friend". When the Genie hears of the danger to the town, his first reaction is to rush off to help, but Roxas explains that Aladdin wants to rebuild the town with his own strength. Genie concedes that it's important to respect his Aladdin's wishes, but he still magically stops the sandstorm.

Three weeks later, Roxas finds Jasmine and Aladdin glad that the sandstorm has subsided, since now they can go outside the city again, though the Heartless are still posing a problem. When Roxas heads outside the city limits and into the desert, he encounters a Heartless, the Antlion. He defeats it, and soon afterwards Roxas finds Aladdin commenting that the Heartless' numbers seem to be decreasing. While Roxas spies on Aladdin and Jasmine's conversation, the Genie joins him again to see how things are going with Aladdin and the Jasmine. Genie decides not to go and greet his friend so as not to get in the way, claiming that just knowing his friend is safe is enough to keep him happy.

Roxas completes several more routine missions to Agrabah, but when he and Xion visit the city on his 321st day in the Organization, and she feels uneasy. He brushes off Xion's concern, and they head to a deep part of the Cave of Wonders that had been uncovered by the previous cave-in. There they find the old, sealed keyhole, and Xion is struck by a vision of a boy locking it. She suddenly realizes that the boy looks a lot like Roxas, but the two are attacked by a large Heartless before she can say anything. Roxas finds himself struggling to wield his Keyblade, but Xion easily dispatches the Heartless, and helps Roxas to his feet. Roxas assures her that he's just tired.

When Roxas is sent to Agrabah one last time on his 354th day, he sets up a strange, silver, hovering device in the middle of The Lamp Chamber, though Roxas doesn't know what the device does. Roxas is attacked by Heartless, and although he manages to fight them off he finds himself struggling and wondering when he became so weak. As he is about to return home, he pauses in the desert, suddenly wondering just why he keeps carrying out missions for the Organization he knows so little about. Roxas thinks to himself that he doesn't know who he really is, or where he came from, and is concerned about his relationship with his friends. He wonders whether he wants to return to The World That Never Was or not, and as he looks up at the stars, he sheds a tear.

Sometime later, Roxas is transported here by Xion at the Lamp Chamber. Xion uses the Organization's device to summon swords similar to those wielded by Kurt Zisa to attack Roxas. However, Roxas manages to destroy the weapons. Xion then transports herself and Roxas to Twilight Town to continue the fight.

Kingdom Hearts II
Sora, Donald, and Goofy arrive in Agrabah hoping to meet up with their old ally Aladdin and Jasmine. Once they land, the first few moments are quite hectic. First, they meet Iago whom needs help getting back on the good side of Aladdin and Jasmine. Then, the gang is ambushed by a seemingly endless supply of Heartless; after defeating a number of Heartless, Iago returns and "saves" the group. They escape to a nearby alley and question Iago as to where Aladdin might be. Hinting he could be at the palace, the group go to the palace where they meet a worried Jasmine. Jasmine says that Aladdin hasn't been himself lately and is worried that something is wrong (despite Aladdin's protests). The group embarks on a search to find Aladdin.
 * First Visit

After leaving the palace, the group find Aladdin's pet monkey, Abu, stealing a black lamp with Aladdin in chase. After the lamp is returned to the peddler, Aladdin explains why he has been sad as of late; Genie and the Magic Carpet have gone sight-seeing around the world. Iago interrupts again and states that the lamp the peddler was selling was the lamp that imprisoned Jafar. The peddler refuses to sell the lamp to Aladdin unless they pay him with treasure that is fit for a sultan. Refusing to worry the Sultan and Princess Jasmine, Aladdin and the group head to the Cave of Wonders in search of treasure.

At the Cave of Wonders, the group pass through the "Chasm of Challenges" and find what looks to be a gold trophy with gems on the sides. The group heads back to the Peddler's shop where they find Pete arguing with the Peddler to hand the lamp over. The group follows Pete and the Peddler to the palace where a mad race for the lamp ensues. Genie appears and mistakes Pete for Aladdin; angry, Pete summons the Volcanic Lord and Blizzard Lord. After defeating the two Heartless, Aladdin seals the lamp in a case inside the palace. With both Genie and the magic carpet back, Aladdin is back to his old carefree self. Receiving the "lamp charm" (allowing Sora the ability to summon Genie), the group seals Agrabah and leaves, continuing their search for Riku and the King.

The group revisits Agrabah only to find that Jafar has been released from his lamp by the Peddler. Sora, Donald, and Goofy meet up with Aladdin at the Peddler's shop where Jafar orders Aladdin (through a vision) to give him the magic lamp. Iago later tells the group that Jafar is at the Ruins. Genie appears outside the Palace Walls and removes the sandstorm blocking the way to the Ruins. Once at the Ruins, Sora rides the Magic Carpet to the top of the center pillar's roof and fights a few summoned heartless courtesy of Jafar. Iago then leads the group inside the center pillar, misleading them into believing that Jafar is in there, only for them to find out that it was an attempt by Jafar to attack the palace without interference. They escape the trap and head toward the palace.
 * Second Visit

At the palace, Jafar has chained Princess Jasmine to a wall stating that he is the ruler of Agrabah. Aladdin and the group arrive, much to Jafar's surprise. Jafar transforms into a genie and attacks. Sora defeats Genie Jafar which destroys the black lamp that imprisoned Jafar. Bidding the Agrabah group goodbye, Sora and the group leave to continue their journey.

Coded
The Data Sora's chase for Pete leads him to Data Agrabah. Sora's first storyline action is telling The Peddler that a strange monster and the Blocks have appeared, so people should stay in their house. The Peddler offers a trade Sora for a Magneball and to give him a Hi-Potion. Sora explores the world and meets Data Aladdin. Aladdin is delivering something to Jasmine and checks on the Blocks. He doesn't know where Jasmine is, so he ask Sora for help finding her. Eventually, they find Data Jasmine kidnapped by Data Jafar. Sora goes to confront Jafar, and defeats him. After Jafar escapes, he meets Pete, who gives him a corrupt lamp. Sora and Jasmine find Aladdin, and he says that he found a lamp. Jafar appears and re-kidnaps Jasmine. Then, nearly everyone in the world becomes frozen in time. King Mickey explains to Data Sora why he wasn't affected because he is from another world, and has the power to fight the corruption. Sora sees Data Iago unaffected by the time freeze, Iago being the one who stole the lamp. King Mickey tells Sora to get that lamp to release a friend. Sora finds Genie in the lamp, who goes with him to the Cave of Wonders. Sora and Genie appear in the Cave of Wonders, where they meet Jafar and he hides Jasmine inside a closed door. They fight Jafar, who becomes a genie, as in his previous appearances in the Kingdom Hearts series. Sora defeats Genie Jafar, who seals Jafar into a lamp. He later finds Pete, who he continues chasing. He meets up with Maleficent, who destroys his Keyblade and summons Shadow.

Trivia

 * The technical name for a country ruled by a Sultan is a Sultanate.
 * In a PDF included in the official Star Wars website's blog "The Star Wars, from Movie Script Page to Comic Book Page" detailing the transcript of the comic's 14th and 15th pages, J.W. Rinzler mentioned that he had considered basing the Palace of Lite in part on Agrabah Palace, although whether it was to be retained was up to George Lucas.