The Imperial Stormtroopers are fictional soldiers from George Lucas' Star Wars universe. Stormtroopers are the soldiers of the imperial army under the leadership of the evil Sith Lord and Emperor Palpatine and his commanders, most notably Darth Vader and Grand Moff Tarkin. They are shown in collective groups of varying organizational sizes ranging from squads to legions, and, for some, their armor and training is modified for special operations and environments.
In Star Wars Episode II: Attack of the Clones, the first troopers are cloned from bounty hunter Jango Fett, to be the Army of the Republic in the Clone Wars. In Star Wars Episode III: Revenge of the Sith, the Clone troopers execute Order 66 at the command of Chancellor Palpatine, attacking their Jedi generals.
Initially, the stormtroopers serve as the army of the Galactic Empire, putting down revolts and establishing Imperial authority. The Stormtrooper Corps swell in size after Palpatine allows the addition of birth born recruits and conscripts alongside the clones.
When the Empire is firmly stabilized and an Imperial Army/Imperial Navy established, the stormtroopers become Palpatine’s personal army and are stationed on Imperial bases and cruisers, as well as on the Death Star. They maintain these roles until the Empire’s collapse after Palpatine's death in Star Wars Episode VI: Return of the Jedi.