Both Sunset Shimmer and Megatron end up with incredible power, one from a magical crown, another from Unicron’s possession. They take on demonic forms during their power increase.
Both control a legion of zombie like minions, and are eventually defeated.
After their defeat, they repent with little or no consequence from the protagonists as they let them go.