Jafar (Genie)

Jafar is a boss that is found in Kingdom Hearts, Kingdom Hearts: Chain of Memories, Kingdom Hearts II, and Kingdom Hearts Re:coded. He is one of the bosses at Agrabah, and assumes a Genie form.

Kingdom Hearts coded
''The all-powerful genie Jafar became by using the power of the magic lamp. He sought to conquer Agrabah, and with Iago at his side nearly triumped over Sora. In the end, though, he was imprisoned within his own lamp.''

Kingdom Hearts
Having assumed the form of a gigantic genie, Jafar picks up massive fireballs to throw at the party. You can do damage with your new Blizzara spell, but your best bet is to aim for the lamp, which Iago carries around the room. Lock onto the lamp and follow Iago to smash it repeatedly. To avoid damage from Jafar’s fireball attacks, use Dodge Roll, and cast Aero on your other party members (since they can’t dodge as well). Alternatively, you may use Guard to fend off the fireball attacks. For winning this battle, your Fire magic is upgraded to Fira, and you can read the first Ansem’s Report.

Kingdom Hearts: Chain of Memories
Jafar does about the same moves as he does in Kingdom Hearts, but with more time in between attacks. Just as in the first game, attacking Jafar will not deal any damage: you have to hit Iago, who is carrying the lamp. As you cannot use Guard in this battle, it is best to Dodge Roll away from his fireballs, or break Jafar's cards. Keep your Sleights for the lamp. Like all other boss battles, heal when necessary. In Reverse/Rebirth, keep the King Mickey card as the third card for a sleight if your HP is running low and you cannot break Jafar's attacks. Also, the Maleficent enemy card helps a ton since it boosts Riku's strength without slowing down his reload speed (since Riku can reload his cards instantly) It is recommended that the player tries to refrain from entering Dark Mode, as the autotarget will land on Jafar and Riku will attempt to attack him instead of the lamp.

Kingdom Hearts II
This time, the battlefield is the sky of Agrabah. You have the entire field to exploit to your advantage. However, you might be left at a disadvantage because you fight Jafar while flying around on the Carpet, and this might create some maneuverability issues. Also, beware of the buildings/debris that encircle Jafar—they deal substantial damage to Sora.

Jafar has several attacks in this battle, namely a fist swing, fireballs, lightning bolts (In which he says "Cham Dabadabada"), pillars (only when he has the hand aura), and capturing Sora, making him unable to move (and invincible to the fist swing). All of these attacks can be guarded with Reflect magic.

Unlike previous battles against Jafar, you now attack him directly instead of attacking his lamp. Jafar has two weak points, notably the head and the torso. Depleting Jafar's torso health will leave him stunned and activate a Reaction Command that will allow Sora to tie Jafar's body parts together and stun him even longer. You can also attack his hands, but it is quite dangerous.

Every now and then (usually when he snares Sora) Jafar will shift Sora to another dimension (just as Zexion does in the Data Rematch). Debris will be flung against Sora and if Sora does not guard himself against it, his HP will be greatly reduced. This can be avoided, however, by flying around (mainly in circles as well as up and down) constantly. You will get hit, but not as much as you would by staying where you are. You can also completely avoid this part by casting Reflect when he says, "You will never escape".

Use physical attacks as much as you can, and heal when necessary.

Kingdom Hearts coded
You must fight Jafar after entering the keyhole in Episode 5 of Kingdom Hearts coded. Iago is also present during the fight and holds Jafar's lamp.

Kingdom Hearts Re:coded
In this battle, Data-Sora must attack Iago who is holding the lamp, instead of Jafar. On the first phase of the battle, Iago will just fly around the arena while Jafar attacks you by throwing fireballs and "blinking" a purple orb. The fireball will deal a lot of damage, so be prepared to dodge it. The purple ball can give you a slow status and you will definitely not want that to happen, so dodge it too. Jafar will also summon two Bandits. On the second phase of the battle, bug blox will appear around the arena, providing steppingstones needed for Data-Sora to reach Iago. Iago will be exhausted on ths second phase and he will stay in one of the corners of the arena. Jump all the way above and strike him. If you deal enough damage he will fly at a high speed, again, pursue him. This time, Jafar won't use the purple orb nor summon any Bandits anymore. Instead, he uses a new attack in which he throws a fireball above, only to fall down to Data-Sora without warning. So be ready. With enough dodging and healing, Jafar (Genie) should fall with ease.

Trivia

 * In Kingdom Hearts II, before the battle with the Jafar Genie began, he did his hand motions from the original Aladdin movie before he became imprisoned.
 * In Kingdom Hearts II, Jafar was destroyed first then his lamp melted away. However in The Return of Jafar, the reverse occurs: Jafar's lamp was destroyed, then Jafar himself.