"I don't have to deal with you, but I do have to wreck everything."
~ William while under X.A.N.A.'s control.

William Dunbar is the secondary antagonist in Code Lyoko. He is one of the students at Kadic and Ulrich's rival in competing for Yumi's affection. Alongside Franz Hopper, he is the only character aside from the main group to ever enter Lyoko, but it only caused him to be brainwashed and captured by X.A.N.A., who turned William into his general for most of the Season 4 until the finale.

He was voiced by David Gasman, who also voiced X.A.N.A.


Prior to the series

William Dunbar (Normal)

William in the Real World, before ever entering Lyoko.

William Dunbar was raised by his loving parents, growing up and living a fairly normal life. Before he transferred to Kadic Academy, William was infamous at his previous schools for his "puppy love" and stunts he pulled because of it. His most recent school prior expelled him for strewing love letters around the halls.


William was introduced early in the second season and though his crush on Yumi wasn't obvious in his first couple of episodes, the jealousy he stirred in Ulrich was. His crush on Yumi started showing eventually but in the form of a Casanova facade rather than his usual blind puppy love.

Earthly Encounters

When not advancing on Yumi, William can be seen having heart-to-heart conversations with Ulrich or fighting off XANA's attacks when and how he sees fit. After each time reversion Ulrich goes through, the bad aspects of their relationship are erased and they both gain a mutual respect for each other. Meanwhile, Yumi tends to leave her relationship with him unmended when the group avoids time reversions.

This ultimately piques William's curiosity when she sneaks away from him to fight XANA one night and leaving him in a foul mood the next day. At XANA's next outing, William secretly follows Jeremy and Aelita to the computer lab and gains a broad understanding of XANA, albeit temporarily. When they finally discover XANA's motivations, William and Ulrich get into a fight with a possessed demoman and the fight becomes ingrained into William's memory. The attack is stopped and William is petitioned into fighting XANA with the group, but Yumi vetoes him and his memory is seemingly erased by a time reversion.

Before the last terrestrial sector of Lyoko is destroyed, William tells Yumi about the fight and says he thinks it's a dream. Yumi then asks him to cover for her while she stops XANA's following attack. XANA's attack ultimately succeeds, but Jeremy manages to successfully fabricate a working transfer protocol for Sector 5, and given the pressure surrounding Lyoko's survival Yumi changes her mind and decides to recruit William. She does this by telling William that his dream was real and William accepts.

On a day that real life problems occupy every Lyoko Warrior except for Aelita, she is forced to bring William to Lyoko for the first time when XANA attacks the core. William's brashness and lack of training lead him to become separated from Aelita and attacked by a Schyphozoa. William then falls under XANA's control, devirtualizes Aelita and proceeds to the core to destroy Lyoko. In spite of the remaining Lyoko Warriors' efforts, William destroys the core and is deleted along with Lyoko. However, XANA's possession allows it to salvage William's DNA codes from the network and recreate William as XANA's general.

Executing XANA's Ultimate Plan

The Lyoko Warriors manage to recreate Lyoko with data shared by Franz Hopper along with staving off Kadic and the authorities by posing as William over the phone. With Lyoko's rebirth, XANA sends William back to Earth as a double agent to get close to Aelita and while the Lyoko Warriors were questioning the circumstances that led to William coming back, he kidnaps her and attempts to delete her. When that fails, the group decides to create a spectre to pose as William on Earth, whom he only ever encounters once.

After a few attempts on Aelita's life fail, XANA starts sending William back to Lyoko's new core in order to destroy it again. These attacks are seemingly random, but as XANA grows in strength, William is forced to take different approaches in order to hide its agenda. This includes using a digital submarine that was stolen by the Schyphoza to delete the Lyoko Warriors individually and defending the Lyoko replicas by entering a kill code into the original sub during their earthbound teleportation. It is then revealed that William is specifically targeting Aelita because her deletion can draw Franz Hopper from the recesses of the network at which point XANA can attack and eventually destroy him.

During the first attack on the fourth replica, XANA teleports William to Earth as a spectre in Lyoko form in order to stop the teleportation without the kill code. This turns out to be a miscalculation, as Aelita discovers William's exposed DNA codes in the tower that XANA used to send William to Earth. At the same time though, XANA also collects power from the replicas to generate a new monster which causes the Lyoko Warriors to retreat. This new monster dubbed "the Kolossus" aids William in defending the replica during the second attempt. Where the Kolossus succeeds, William fails due to being devirtualized and reconstituted on Earth.

XANA's Endgame

William does manage to take hold of his life, in light of the spectre's blunders, but he is not on the best terms with the Lyoko Warriors due to the conscious folly that got him possessed. When they go to the factory for what would appear to be the last time, William follows them and volunteers to go to Lyoko. However, they decide to only have him come as potential backup. XANA, in an act of desperation, decides to possess William on Earth with its most personable spectre and have him disable the factory and Jeremy. Following the release of the Anti-XANA program, the spectre is expelled from William's body, screaming and writhing in pain assuring the program's destruction.

Forgetting XANA

Though William did not have a say in shutting down the supercomputer following XANA's destruction, he convinces Yumi that her conviction to shut it down is the right thing as they reminisce on their previous fights. Ultimately, when the supercomputer is shut down, William is not seen after the fact, but it is assumed that he moved on with the rest of the group and left XANA behind as a bad memory.

Code Lyoko Evolution

In Code Lyoko Evolution, William becomes a full member of the group and fights alongside them against X.A.N.A. in episode 15 the Codeless when Jeremy virtualize Yumi and William to the desert to deactivate the tower they noticed that there was another William that looks exactly like him but his skin was light green however yumi was about to attack him but was punch and lost some of her life points Jeremy told her to be very extra careful not to lose any more life points he begins to Welcome William back home On lyoko which he begins to know That William has feelings for her and he begins to know that he becomes rejected manipulated and always the team waited for him and then reject him after that she tells him not to listen to him he brings up all the past memories of months ago when he was on there he was a king and all the monsters obey his every command tell him that and no one didn't hurt him anymore.

Yumi tries to tell him to snap out of it but became in raged of being rejected as he begins to go with him she tried to convince him not to listen to them anymore he begins to use his blade by telling her to be quiet however she begins to tell him that he only want their codes and doesn't care about him As yumi becomes double cross and run away clone William told him She abandoned you again, yumi becomes very scared of William and his clone are coming after her however she became trapped and nowhere else to go she and Jeremy was trying to convince him to not do this however he played along and attacked his clone realizing that his friends and saving the world is more important than being a king and a slave of X.A.NA again As clone William became disappointed of the choice that he made and go straight after yumi she managed to go to the Tower but she was blocked by his evil clone however he Manage to stop his clone and defeated him.

However in the episode "Mutiny", William is once again pocesed by X.A.N.A. using the scyphozoa although it is not a full conversion as it's tentacles are still attached to him. William then leads an army of Krabes to kill the group. They try to talk him down but it doesn't work. Ulrich then distracts him and his monsters (as he is in control of them) which gives the rest of them enough time to cut the tentacles which frees William and kills all the monsters.

Powers and Abilities

On Earth

William has slightly above-average athleticism and combat training. Other than that, he is still human and has no notable physical traits. However, in episode 54, William had shown unexpected physical strength, being able to defeat his entire xanafied class by himself, whereas, in many episodes, the other Lyoko-warriors had difficulty defeating one xanafied person. As a spectre, he gains incredible strength and speed, the ability to shoot lighting, and is completely indestructible due to his incomparable connection to Lyoko. The only time this connection failed is when his Lyoko form was tethered to a tower on the Siberian replica. When materialized on Earth while still xanafied (episodes 66 and 81), William retains all his spectre powers, but is also completely invincible: he cannot be defeated by deactivating a tower.

On Lyoko

William is more powerful than all others the Lyoko Warriors combined due to XANA's augmentations, even able to defeat all of them in episode 65. He has three times the amount of life-points and is able to take multiple hits from Aelita's energy blasts and Odd's Laser Arrows, both of which could devirtualize anyone else in one or two shots. One of William's powers is his enormous strength. It allows him to use his zweïhander to its maximum potential without any difficulty. A primary example is that he had enough power in episode 69 “Wreck Room” to smash a rock to pieces when Yumi threw it towards him with telekinesis. Thanks to this power, he can also combine close combat with his own fighting style when he duels with a hero. This is notably useful when he finds himself disarmed. When teleported in episode 92, he knocked out Odd with only one kick.

William's Lyoko Warrior weapon is a zweihander sword that can be called upon with his super smoke. The sword itself can absorb energy, perform energy slashes of varying strength and it allows William to hover and glide while not in his cloud state.The zweihander is extremely deadly: almost all its blows are fatal, with but a few exceptions (like Odd in episode 73 “Replika”). As for the energy slashes, they are also are devastating: a single hit is enough to devirtualize a Lyoko Warrior and/or their vehicle. It is unknown what the Eye of XANA located on the center of the sword does, but it has been known to make the entire sword light up with red shockwaves when struck, which indicates that the sword can possibly be destroyed by hitting it hard enough, but this has never happened. William can also power down his energy slashes, to subdue Aelita for example.

William's most iconic power is his "Super Smoke" an ability explicitly given to him through XANA's design: of all the powers in the series, it's the one that has the most uses. It has offensive, defensive, strategic and ballistic capabilities: Super Smoke allows William to change himself and his weapon into black smoke at any moment, or manipulate small clouds of it. From an offensive point of view, William uses it to throw the heroes to the ground (episode 68 “Opening Act”) and knock them out by throwing a powerful ball of smoke into the target. Ideal for grounding a vehicle, Aelita is the main victim of it (episode 69 “Wreck Room”). Almost always used on Aelita, the smoke can also take control of a body (preferably inanimate) to move it. This allows William to transport Aelita in order to throw her into the Digital Sea and make Franz Hopper appear (from episode 66 “William Returns” until later on). In episode 85 “Kadic Bombshell”, William even uses this ability to throw Aelita against rocks in the Mountain Sector to ensure she doesn't escape. William can turn himself into smoke. Flying in the form of a cloudy ball, he is able to cover great distances in a short time. This even allows him to race ahead of vehicles or Aelita when she is in flight (episode 84 “Guided Missile”) and can then catch her before she reaches a tower. In this form, he is even faster than Ulrich's Supersprint. William also uses it strategically: the Super Smoke regularly allows him to save himself from a fall, especially one into the Digital Sea. In combat, he often uses it to get out of difficult situations by dodging, then reappearing behind the heroes and surprising them. He also uses Super Smoke to propel himself and deliver a powerful blow with his sword by reappearing in mid-air (episode 89 “Music to Soothe the Savage Beast”). Finally, his sword can also turn to smoke. This allows William to make it appear whenever he needs it and not be slowed down by having to carry it. He regularly makes it disappear and reappear when it has gotten stuck somewhere, which happens often given the sword's weight and the strength of its user... In episode 78 “Lab Rat”, William uses Super Smoke in order to destroy Yumi's fans. When xanafied, William takes refuge in the Digital Sea in the form of Super Smoke. He is, alongside Franz Hopper, the only human character that is able to travel in the Digital Sea without any risks.

William also has a protective armband that allows him to block any form of attack. It is generally used against Ulrich's swords, but it can also deflect Odd's laser arrows.

The xanafied William is also a leader, generally leading XANA's monsters on the battlefield. William is also rational : he sometimes retreats when the battle is lost (episode 68 “Opening Act”) or when he is badly outnumbered (episode 73 “Replika”).

The real William has also shown great mental strength: In episode 76, while Yumi and William were fighting in the Ice Sector and William is about to deal the final blow in the duel, Yumi begs him to try to remember that he swore to being a Lyoko Warrior, promising that he would stand by the heroes' sides just before he stepped into the scanner. The real William then tries to regain control of his body, even succeeding for a second[1]. However, XANA managed to regain control of William.


William Dunbar (Normal-Lyoko)

William's Lyoko form, after being possessed, but before his complete transformation.

William initially comes off as being a normal teenager with well-behaved tendencies. The tendencies stem from an obsession of expressing his puppy love, which he has been known to be expelled from previous schools over. As the series progresses, William falls in love with Yumi Ishiyama and tries to advance on her to no avail and realizes that she is more interested in Ulrich, but still persists. When his curiosity is piqued, he becomes somewhat argumentative and obnoxious to the point of impulsively stalking Jeremy and Aelita just because they're Yumi's closest friends, and ignoring important advice from Aelita just to have fun destroying XANA's monsters. However, despite all of this, William is both noble and humble enough to help people he doesn't like, which is how he earned Ulrich's respect during XANA's various attacks.

After XANA takes permanent control of him, William is initially stoic and sometimes callous, saying very few words though the words spoken are harsh and commanding. His hypnotic dedication to XANA even encourages him to shout "FOR XANA!" during battle. As the possession deepens William stops targeting Yumi and develops a sadistic obsession with Aelita, along with speaking more frequently. Under XANA's control, William is also very tricky, deceitful, and manipulative: he has used his normal self's voice to fool the Lyoko-warriors several times (notably in episodes 66 and 69) into believing he was freed from XANA's control. He also prone to sneak attack, for example when he ambushed Yumi inside the activated tower in episode 76.

According to the writers, William is usually running through battle simulations when not on Lyoko to widen his strategic range and his inability to be reasoned with while possessed is because he subconsciously blames the Lyoko Warriors, especially Yumi, for his enslavement.




           Cartoon Network Villains

TV Series
Red Guy | I.R. Baboon | XANA | William Dunbar | The Announcer's Remote Control

Dexter's Laboratory
Mandark | Quackor | Badaxtra | Hookocho | Lalavava | Comrade Red | Mental Mouse | Huntor | Peltra | Simion | Orgon Grindor | Dynomutt X-90

Foster's Home for Imaginary Friends
Terrence | Duchess | Bendy | Berry | Kip Snip | Lil' Lincoln | Moose | Nemesis | Omnizot | World

Ed Edd n' Eddy
Kevin | Kanker Sisters | Eddy's Brother

Grim Adventures of Billy & Mandy
Grim | Mandy | Nergal | Eris | Bogeyman | Jack O' Lantern | Pinocchio | Geppetto | Cthulhu | Morg | Bunny | Delightful Reaper | Bun Bun | Pan-dora | Hoss Delgado | Hector Con Carne | General Reginald Skarr | Brain-Eating Meteor | Mask of the Beast | Lord Moldybutt | Major Doctor Ghastly | Lionel Van Helsing | Nancy Claus | Jurassic Creeps | Estroy | John Jack Daniel Torrance | Wiggy Jiggy Jed | Yaap Yaap | Triceratron | Clowns | Lord Pain | Professor Death Ray Eyes | New Mandy | Super Chicken | Dean Toadblatt | Dreadbots

Hi Hi Puffy AmiYumi
Axel & Rod Skidmark | Biodegradable Masters | El Diablo | Eldwin Blair | Evil AmiYumi | Julie | King Chad | Koi Fish | Master Pang | Mitch Mr. Darrell | Mr. Master | Nikolai | P.A.L. | Rumaki | Sauerkraut Malone | Sunikura | Talent Suckers | Timmy | Vlad

Camp Lazlo
Edward Platypus | Commander HooHa | Ms. Mucus

My Gym Partner's a Monkey
Bobby Lion | Bull Sharkowski | Chad | Euripides Sharkowski | Larry Raccoon | Lola Llama | Possum Girl | Principal Wolverine | Rick Platypus | Mr. Cheetah | The Spiffies

Miss Endive | Gorgonzola | Reuben | Chestnut | Funjl | Meach

Johnny Test
Bling-Bling Boy | Mr. Mittens | Brain Freezer | Wacko | Zizrar the Mole King | The Beekeeper | Dark Vegan

Samurai Jack
Aku/Black Mass
Demongo | Scaramouche the Merciless | Jack-Aku | Mad Jack | Minions of Set | The Gentleman | X-49 | DJ Stylbator | Imakandi | Pig Sheriff | Cult of Aku (High Priestess & Daughters of Aku)

Guardian | Demonic Spirit | Lava Monster | Huntor | Chritchellites | Cronus | Gordo the Gruesome | Josephine | Lazarus-92 | Omen | The Dominator