"The Death of Superman" storyline from the comics. The main villain was the alien supercomputer, Brainiac, and he had a plot to kill Superman by simultaneously blocking out the sun and unleashing Doomsday on Metropolis. The plot works, and Superman is killed.