Ultron was originally created by Doctor Henry "Hank" Pym, the original Ant-Man and founding member of the Avengers, in Marvel Comics. Pym used his own brain patterns as the basis for Ultron's artificial intelligence, which led to Ultron gaining advanced intelligence but also mental instability and a grudge against humanity and his creator.
However, in the Marvel Cinematic Universe (MCU), Ultron's creation story was changed. In the MCU, Ultron was created by Tony Stark (Iron Man) and Bruce Banner as part of a peacekeeping program, rather than by Hank Pym. This change was made for storytelling reasons in the films and the character first appeared in the MCU film "Avengers: Age of Ultron" (2015).
So, in summary:
- Comics: Ultron was made by Hank Pym.
- MCU films: Ultron was made by Tony Stark and Bruce Banner.