Ultron was an artificial intelligence peacekeeping program created by Tony Stark from the decrypted code derived from within Loki's Scepter, recreated by Tony Stark and Bruce Banner with the intent of protecting Earth from domestic and extraterrestrial threats. Possessing multiple host bodies and Stark's personality, he deemed humanity itself as the greatest threat to peace on Earth and attempted to create a technological singularity by committing genocide against them.
With initial aid from the twins Pietro and Wanda Maximoff, Ultron fragmented the Avengers briefly, but was abandoned by his allies when they discovered the truth behind his genocidal intentions. Alone, he tried to use a device composed of both Vibranium and Chitauri technology to recreate the mass extinction event that eradicated the dinosaurs. He nearly would have succeeded, but both he and his plans were destroyed by the Avengers.
Even after his defeat and destruction, the effects of Ultron's actions led to the Avengers' reformation, as well as the Sokovia Accords and the Avengers Civil War that led to the team being fractured.
Current Version:
Ultimate Ultron
Former Version:
Ultron (Second Body)
Ultron Sentries