- "Well it doesn't matter how it ended, the war is over, let us go!"
"Negative, Captain. I calculate that this will be my only opportunity to end the Clone Wars as I planned. With a victory for the Separatist Alliance."
- ―Captain Rex and General Kalani
In 2 BBY, Captain Rex and the Spectres undertook a mission to the planet Agamar to obtain proton bombs from a Separatist supply ship. However, they were captured by a holdout of the Confederacy of Independent Systems by still-functioning battle droids led by the super tactical droid Kalani. The droid general wished to end the Clone Wars on his own terms, and challenged the rebels to a battle that would decide the victors, taking Garazeb Orrelios hostage. Led by Rex, Ezra Bridger and Kanan Jarrus eventually managed to overpower the droids and confront Kalani, but Imperial forces suddenly arrived and attacked the Separatist supply ship. The rebels and Separatists came to the conclusion that the Empire was the real victor of the Clone Wars, and decided to unite to get a victory of their own. They used the droids to distract the Imperial forces like their AT-AT walkers in order to cripple them with proton bombs, which allowed them to escape in several Separatist Sheathipede-class transport shuttles. The Spectres kept their shuttle as a replacement for their lost shuttle, the Phantom.
- "The Jedi betrayal ended the war for most of the galaxy. But here on Agamar, I assumed it was a Republic trick and prevented the shutdown command."
In 20 BBY, during the Clone Wars, Republic-backed rebels led by Steela Gerrera and her brother, Saw, launched a campaign against King Sanjay Rash of Onderon, who was aligned with the Separatists, and the occupying Confederate droid forces on the planet. As the rebels continued to mount attacks with the aid of the Jedi, Separatist Head of State Count Dooku deployed General Kalani to Onderon with droid reinforcements in hopes of quelling the unrest. However, as the Confederate reinforcements failed to bring down the rebels, Dooku ordered Kalani to execute Rash and withdraw all remaining Separatist forces to Agamar, where they remained for nearly 20 years.
After the Separatist leaders were slaughtered by Darth Vader in the aftermath of the Clone Wars, all Separatist battle droids were to be shut down. However, the super tactical droid Kalani assumed that the shutdown of the droids and extermination of the Jedi was just a Galactic Republic trick, and avoided the shutdown along with the droids under his control.
In 2 BBY, the Ghost crew received information about a destroyed Separatist supply ship on Agamar from Rex, and they traveled there in order to gain the ammunition left behind, especially proton bombs. Kanan Jarrus, Ezra Bridger, Garazeb Orrelios and Chopper accompanied Rex, while Hera Syndulla and Sabine Wren departed to handle other business.
The last battle
Blast from the past
- "We have new orders, incapacitate and capture. Activating stunner."
- ―B1-268 apprehends the intruders
The rebels entered the transport ship and uncovered a large supply of proton bombs in the hangar, but as they were about to collect them, they were entrapped by a ray shield. They were then surrounded by Separatist battle droids, who mistook the rebels for Republic troops and prepared to shoot them. However, they immediately received orders to stun and capture the rebels instead, and they did so. Chopper, who had deviated from his allies' path, remained free and unnoticed in the hangar.
Rex, Ezra, Kanan, and Zeb awoke in the command center, where they came face to face with the Separatist super tactical droid Kalani. Kalani revealed to the rebels how he and his troops were still functioning, and told them about his desire to end the Clone Wars with a Separatist victory, despite the rebels telling him that the Clone Wars had ended. The droid general threatened to terminate them if they refused to participate. Zeb, upon refusing to participate in the battle, was informed by Kalani that he would be playing the hostage in the battle situation, as his species, the Lasat, had not participated in the Clone Wars. Kanan and Rex refused to fight the droids, but Ezra agreed, on the conditions that Zeb would be released and they would gain possession of all the proton bombs if they won, which Kalani agreed to. Kanan and Rex begrudgingly agreed to participate, and the battle preparations began.
Meanwhile, Chopper found a Sheathipede-class transport shuttle in the hangar and sent a distress signal to the Ghost. However, the Ghost was being pursued by Governor Arihnda Pryce and Agent Alexsandr Kallus in several Star Destroyers, fleeing with a quantity of stolen fuel, and the Imperial fleet intercepted the signal. Chopper's signal was encrypted, but Pryce recognized it as a rebel distress call and had forces sent to Agamar.
Reenacting the Clone Wars
- "No... the war. It's not over!"
"Talk to me!"
"Ah, Kanan, I'm sorry, I thought you were someone else"
- ―Rex waking up from being stunned
On Agamar, Rex, Kanan, and Ezra returned outside as Kalani laid out the conditions for the battle: the three rebels would have to fight their way to his command center in order to rescue Zeb. If the rebels captured the command center, they would win. Kanan chose Rex to lead them into battle due to his combat experience, and Rex told them that since they were heavily outnumbered, they would have to attack the hangar aggressively. As the battle droids approached, the rebels adopted a sword and shield formation, where Kanan and Ezra blocked the droids' blaster bolts with their lightsabers in order to give Rex cover to throw detonators at the droids. The rebels managed to push through the droids as they took refuge in the hangar, and they seemed to face no opposition after that.
However, this was all part of Kalani's tactics, and when the rebels went out into the open, Kalani sent droidekas onto the crosswalks above the hangar to fire at them. Overwhelmed by the droidekas, Ezra got the idea to attack them with a nearby crane while Rex and Kanan drew their fire away. They split up, and Rex and Kanan resumed their attack on the droidekas, though Rex was wounded in the right shoulder. Meanwhile, Ezra ran into Chopper, who told him about the Separatist shuttle. Ezra then used the Force to ram the crane into the bridges, causing the droidekas to fall and break. Ezra reunited with Kanan and Rex, but Rex was angry at Ezra for not executing their plan efficiently.
The rebels exited the hangar into the halls of the ship, where they were surrounded by two droidekas. Kanan managed to Force push one of them, causing it to malfunction and destroy itself. The other one managed to graze Ezra, but Rex threw his helmet at it, causing its shields to fall and allowing the clone to destroy it with a blaster shot. The rebels reflected that the droids were not as durable as they used to be due to their age.
The real Clone Wars victors
- "I know the Jedi were wiped out, the clones were decommissioned and the droid army was just shut down. The Clone War ended but why? If none of you won, who did?"
"Uhh the Empire.""
- ―Ezra and Zeb
The rebels entered the command center and prepared to claim victory, but Kalani was not about to honor it as he claimed that his droids would have won if they were in peak condition. Rex prepared to shoot the droid, but Ezra stopped him, having realized that neither the Republic nor the Separatists really won the Clone Wars. As Imperial forces arrived on Agamar, Ezra realized that the two sides had been decimated by the true victors: the Empire. Some of Kalani's battle droids greeted arriving stormtroopers at the front of the ship, but were easily dispatched. Ezra proposed an alliance between the two sides to fight against the Imperial platoon, convincing Kalani's programming that the Empire, as an extension of the Republic, was his enemy as well, and the two sides agreed.
Ezra created a plan to escape on the Sheathipede-class shuttles that Chopper had found, but the problem was that the remaining battle droids were too depleted to battle the Empire, and the shuttles had no weapons. However, the rebels had the idea to attack the Imperial All Terrain Armored Transport walkers with the proton bombs they came for. Due to the battle droids' aim not being accurate enough to set off the bombs, they would instead fire at Kanan and Ezra, who would redirect the blaster shots toward the bombs.
The rebels and the Separatists moved to the hangar, and Zeb led the battle droids in direct combat against the All Terrain Defense Pod walkers, which the droidekas managed to heavily damage. While this happened, the B1-series battle droids rolled the proton bombs at the AT-ATs, and Kanan and Ezra redirected the shots they had fired at them, successfully setting off the bombs and destroying one of the AT-ATs. In the midst of the chaos, the rebels boarded one shuttle while Kalani and the remaining battle droids boarded the other two, although the shuttle occupied entirely by battle droids was shot down. The remaining two shuttles managed to fly through the Imperial platoon and successfully escape into space.
- Rex: "No, it was a victory. We all just won the Clone War, and you ended it Ezra. A galaxy of senators couldn't do that. An army of Jedi, clones, and droids couldn't find the middle ground, but you did."
- Ezra: "Rex, all I did was point out that none of you were meant to win. You couldn't."
- Rex: "And we needed to hear it."
- Kalani: "Agreed. I am satisfied if you are, Captain."
- Rex: "I am."
- ―Rex, Ezra Bridger, and Kalani bring an unofficial end to the Clone Wars[src]
The two ships entered space, where the Ghost had just arrived to pick up the rebels. Kalani at first stated that while they had escaped, it had not been a victory. Rex disagreed however, and stated that they had all just ended and won the Clone Wars. He thanked Ezra for this, and both Rex and Kalani accepted this as the true end of the Clone Wars. Due to calculating a low chance of success of defeating the Empire, Kalani and his forces parted ways with the rebels. Kanan contacted Hera, who was shocked to hear that they had not gained any proton bombs, but Kanan told her that instead they had gotten a new Phantom: the shuttle they were currently piloting.
- Star Wars Rebels – "The Last Battle" (First appearance)
- Star Wars Rebels – "Imperial Supercommandos" (Indirect mention only)
Notes and references
- Star Wars Rebels – "The Last Battle"
- Star Wars Rebels – "Hera's Heroes"
- Star Wars Rebels: Steps Into Shadow
- Star Wars Rebels – "Imperial Supercommandos"
- Dawn of Rebellion dates the events of Star Wars Rebels: Steps Into Shadow seventeen years after the end of the Clone Wars, which Star Wars: Galactic Atlas dates to 19 BBY; therefore, the events of Steps Into Shadow must take place in 2 BBY. According to Star Wars: On the Front Lines, Mon Mothma's denunciation of the Galactic Empire and the Declaration of the Rebel Alliance take place 2 years before the Battle of Yavin or 2 BBY. As "The Last Battle" is set between Steps Into Shadow and "Secret Cargo," the events of the episode must also take place in 2 BBY.
- Star Wars: The Clone Wars – "A War on Two Fronts"
- Star Wars: The Clone Wars – "Front Runners"
- Star Wars: The Clone Wars – "Tipping Points"
- Star Wars: Episode III Revenge of the Sith