The X-Men's greatest enemy has traveled a long and winding road since his inception all the way back in 1963's X-Men #1. In truth, Magneto's powers have fluctuated as much as his loyalties throughout the decades. Sometimes this can be attributed to either a writer's active imagination or their passive understanding of science.
In the Silver Age stories, Magneto showed some shocking powers, extending his control over magnetic fields to include creating force shields, summoning astral projections from the electromagnetic spectrum, and even mind control, explained as having a "magnetic personality." As the stories progress into the modern era, writers find new and interesting ways to expand Magneto's ever-growing talents. One of the most unforgettable arriving in Magneto: Dark Seduction #3, when the titular character stops a group of Avengers by reversing the flow of their blood, manipulating the iron contained within.
Ian McKellen's version of Magneto also uses this trick in the 2000 movie X-Men, released the same year (with some added metal). Luckily for his enemies, this is not a normal occurrence. Several of these brushes with horrifying omnipotence have occurred due to Magneto's powers being... magnified by other mutants. Fabian Cortez has the power to amplify mutant powers, and as such has often been a prominent member of Magneto's Acolytes. Magneto's on-again, off-again daughter, Polaris -- who shares the same magnetic powers as her part-time father -- also bolstered his control over earth's magnetic field by channeling her own abilities through him.
While power creep (making characters overpowered) is a real thing in comics, creators have found inventive ways to keep those heroes and villains in check. In the X-Men crossover event Fatal Attractions, Magneto tears Wolverine's Wolverine's adamantium skeleton out of his body through his pores. In retaliation, Charles Xavier and Jean Grey psychically lobotomize him, seemingly eliminating the threat permanently. In the aftermath of Avengers vs. X-Men, Magneto loses control over his powers due to a battle with a Phoenix-powered Scott Summers. His powers are then amplified to unheard of levels by the Age of Apocalypse refugee, Sugar-Man, leading up to Secret Wars, when he attempts to destroy an alternate Marvel Earth (Earth-1610) before it collides with his own, eradicating both realities. He nearly succeeds, with the assistance of Polaris, but ultimately burns out both of their powers as the multiverse is destroyed.
Following the old maxim concerning one's inability to beat them, Magneto has, on many occasions, joined the good guys as a way to keep his destructive nature in check. Despite the apparent inevitability of his malevolent tendencies, Magneto has acted as headmaster and mentor to the New Mutants and several teams of X-Men throughout the years. In the latest reboot of the X-Men franchise, Magneto stands alongside Xavier in creating a refuge for mutantkind on the island nation of Krakoa. For a moment it seems as though Magneto's motives align with Xavier's dream of mutant equality, even if the current iteration is a "separate-but-equal" approach. However, on the final page of the introductory series, House of X #1, Magneto throws shade at the possibility of equality as he mocks the religious beliefs of a gathered group of ambassadors, telling them, "You have new gods now."
More than most comic characters, Magneto has had a long and often confusing journey filled with reboots, retcons, realignments, imposters, clones, and a prolific (and fluid) family tree. But he remains an X-Men favorite and mainstay of the Marvel Universe at large. The X-Men are forever doomed to repeat history by trusting the scorpion in their midst, regardless of how many times he shows his true nature, especially if cinematic synergy has anything to say about it. Each time he has been depowered, repowered, or overpowered, Magneto has found a way to rise back into prominence, and he isn't going anywhere anytime soon. Moral ambiguity and motivational nuance are the true superpowers of the enduring and endearing comic book anti-hero.