Complex sentence: Magneto was at odds with Professor X and the X-Men for decades, but with mutant annihilation on the horizon, old animosities have to give way to new alliances.
Split into simpler sentences: Magneto was at odds with Professor X and the X-Men for decades. But with mutant annihilation on the horizon, old animosities have to give way to new alliances.