Rex, designation CT-7567, was a veteran Clone Captain and Advanced Recon Commando who commandedTorrent Company, a company of clone troopers within the Grand Army of the Republic‘s famed 501st Legion during the Clone Wars. Rex later served as a captain and commander within the Alliance to Restore the Republic during the Galactic Civil War. Rex participated in many battles over the course of the Clone Wars. As the captain of the 501st, Rex served as second-in-command to Jedi General Anakin Skywalker, whose bravery and unorthodoxy in battle he came to share. In addition to being a close friend of Skywalker he also became close friends with Skywalker’s apprentice, Ahsoka Tano. He was close friends with Marshal Commander Cody, with their relationship mirroring that of their respective Jedi Generals, Skywalker and Obi-Wan Kenobi, whom Rex was also well acquainted with. Rex and his companions often worked together during the front-line campaigns against the Confederacy of Independent Systems.