Y-3PO, sometimes spelled Why-Threepio, was a 3PO-series protocol droid designed to interact with organics, programmed primarily for etiquette and protocol. At different periods of galactic history, he served the Galactic Republic, the Rebel Alliance, and the New Republic. Originally constructed on the Inner Rim world Affa forty years before the Battle of Yavin, he served as the assistant of Senator Barm Standou of Arthogar. In 19 BBY, when Supreme Chancellor Palpatine reformed the Galactic Republic into the first Galactic Empire, Standou joined the Delegation of 2000, a group of Imperial senators opposed to the Emperor's oppressive rule. He would be arrested and eventually executed for his outspoken opinions of the Empire. This would not leave his droid without work however, as the fledgling Rebellion would take him in to get revenge on his master's killers. During the Galactic Civil War between the Alliance and the Empire, he would be assigned to the Rebel Barter Squad, serving as a mission dispatcher and occasional diplomatic aide. In 4 ABY, when the Alliance Fleet destroyed the Imperial space station Death Star, he quickly joined the New Republic.