Battle Droids are fictional, robotic combat units used in the Star Wars Universe. Though developed earlier, battle droids served as frontline units in the Trade Federation Army and for the Confederacy of Independent Systems during the Clone Wars era. They were mass-produced on Confederate planets such as Geonosis, and some units survived into the Galactic Civil War and Legacy era. Battle droids were originally made by Trade Federation Viceroy, Nute Gunray, to prevent pirate attacks. When he was contacted by Darth Sidious, he attacked the peaceful planet of Naboo. The droids easily overwhelmed Naboo's military and put the people in camps where many died