Thor was a member of the Avengers who ended up defeating Ultron. However, years later, Thor was away from Earth when he heard of Ultron's reemergence. He and Captain Marvel took towards Earth and found Ultron defeating the Avengers. Together, Danvers and Thor attacked Ultron and killed him.[1]