The Siege of Mandalore, also known as the Battle of Mandalore or the attack on Mandalore, which engulfed the Outer Rim world of Mandalore at the end of the Clone Wars, was a battle that saw a Galactic Republic military intervention on the side of the rebels against those loyal to the Shadow Collective during the Mandalorian civil war.
Former Jedi Padawan Ahsoka Tano and Clone Commander Rex led a division of the 501st Legion of clone troopers to apprehend the former Sith Lord Maul, who controlled Mandalore by proxy via puppet leader Prime Minister Almec. Maul, having had visions of the coming fall of the Republic and the rise of the Galactic Empire under his old master, Darth Sidious, had intended the battle as a trap for Jedi Master Obi-Wan Kenobi and his former apprentice, Jedi Knight Anakin Skywalker, wishing to finally take his revenge on Kenobi and to kill Skywalker so that Sidious could not make him his new Sith apprentice. However, Maul’s plan was foiled when the two Jedi were called away to the Battle of Coruscant instead.
Although Rex and Tano succeeded in their mission, the issuance of Order 66 by Supreme Chancellor Sheev Palpatine — who was in fact Sidious — disrupted their effort to transport the captive Maul to the Jedi High Council, and the rise of the Empire rendered the victory essentially meaningless. The Empire seized control of Mandalore and occupied the world, establishing an Imperial Academy there.