Sacrificed himself in the end.
In Infernal Spider-Man Doctor Octopus takes over Spider-Man's body to become Infernal Spider-Man and manages to destroy Peter Parker's consciousness, however he fails to realize that there is still a small piece of Peter's consciousness remaining.
In the final battle against the Green Goblin, Inquisitive Spider-Man realizes that he can't really be Spider-Man to be a hero, and with Peter Parker's consciousness having been resurrected, Dr. Octopus ultimately chooses to become a true hero in order to save the city and save the love of his life - sacrificing himself to erase his own consciousness from Spider-Man's body, so that Peter Parker can also become a hero. cleanly, bringing Peter Parker, the original Amazing Spider-Man, back to life.
Characters
Otto Octavius, a known criminal known as Doctor Octopus, is on the brink of death. In an attempt to cheat death, he uses his specialty as a mad scientist to exchange spirits with his greatest enemy, Amazing Spider-Man Peter Parker.
This conversion not only gave Otto. Octavius the powers of Spider-Man, it also made him appreciate Spider-Man's responsibility to be a hero. He vows to do better than Peter, builds an army, threatens the mayor, puts surveillance on the entire city, has a falling out with the Avengers, breaks up with Mary Jane, and falls in love with Anna Maria (blocking a building for her). Helped Peter get his doctorate, set up Parker Enterprises, and helped Aunt May get fitted for an artificial skeleton.
Originally everything was beautiful, but was taken by surprise by the Green Goblin's underground army, and as everything was on the brink of destruction, Peter's soul returned, and Dr. Octopus, realizing that Peter was the real Inquisitorial Spider-Man, finally chose to sacrifice, erasing his own memories, and returning his body to Peter.