Warning! SPOILERS for Star Wars: The Clone Wars season 7, episode 9 ahead.

Star Wars: The Clone Wars season 7 explains why Captain Rex doesn't appear in Star Wars: Episode III - Revenge of the Sith. Season 7 is the final season of The Clone Wars and new episodes are available weekly on Disney+. The revival of the cartoon is finally filling in a gap in the Skywalker saga, revealing what happens to characters like Anakin Skywalker, Obi-Wan Kenobi, and Ahsoka Tano in the period just before the rise of the Galactic Empire.

Most recently, The Clone Wars season 7 caught back up with Ahsoka following her departure from the Jedi. She's been getting by on her own, but recent episodes saw her team up with a couple of sisters for a poorly thought out smuggling mission. This mission, however, reconnected her with Lady Bo-Katan and revealed that Maul was still ruling Mandalore through a puppet government. Armed with this knowledge, Ahsoka returns to a world she thought she'd left forever, seeking help from the Jedi and the Republic in capturing Maul and returning Mandalore to its people.

Related: Darth Maul’s Clone Wars Return Explains Season 7 Plot

In Star Wars: The Clone Wars season 7, episode 9, "Old Friends Not Forgotten", Ahsoka reunites with Anakin, Obi-Wan, Captain Rex and the clone troopers of the 501st. To honor Ahsoka's return, several of the troopers paint their helmets in the style of Ahsoka's facial markings - a sign of respect for their commander even though she's no longer a Jedi and holds no rank in the military. It's many of these troopers who are assigned to join Ahsoka and Bo-Katan on their mission to free Mandalore from Maul, but as Ahsoka cannot lead the Republic's forces, Captain Rex is promoted to Commander and placed in charge. This is why Captain Rex--or rather, Commander Rex doesn't appear in Revenge of the Sith: during the time frame of the movie, he's fighting alongside Ahsoka in the Siege of Mandalore.

Ahsoka Rex and Bo-Katan in Star Wars The Clone Wars season 7

"Old Friends Not Forgotten" ends with Anakin and Obi-Wan learning General Greivous has kidnapped Chancellor Palpatine, and it's that mission which kicks off the events of Revenge of the Sith. With The Clone Wars about to enter the same time frame as the movie, characters are being moved into place for the finale of the Star Wars prequels. Obviously, this sees Anakin and Obi-Wan return to Coruscant along with Commander Cody, the clone who will sadly come to betray Obi-Wan during Order 66, but The Clone Wars is also sending many of its Jedi characters to the planets that will become their final resting places.

In the case of Ahsoka and Rex, they need to be sidelined from the saga's main events seeing as neither character existed when Revenge of the Sith was originally made. Already, Ahsoka's leaving the Jedi order had somewhat accomplished this task, but having her take part in an equally important and simultaneous mission is an even better solution. Sending Rex along with Ahsoka also works not only because it offers an in-canon explanation for his whereabouts during Revenge of the Sith, but it will allow him to be there for Ahsoka when Order 66 comes.

As is revealed later in Star Wars Rebels, Rex removed his inhibitor chip following the death of his friend and fellow trooper, Fives, who during The Clone Wars season 6 episode, "Orders", came dangerously close to revealing the chip's true purpose. This means that when Order 66 is given, Rex won't be compelled to obey the order to strike down the Jedi like his fellow troopers will be, and instead, can have Ahsoka's back when the inevitable happens. Star Wars: The Clone Wars season 7 is now taking place parallel to Revenge of the Sith, and it won't be long now before Order 66 brings an end to the Clone Wars.

Next: Clone Wars Season 7 Brings Back Major Mandalorian Character From Rebels