Carol Danvers excelled in her United States Air Force career and eventually became a trusted espionage agent. After retiring from a career of espionage she became the security chief at NASA's Cape Canaveral facilities. It was during this time she met the Dr. Walter Lawson, who was secretly the Kree spy Captain Mar-Vell.
It was during a battle between Captain Marvel and his superior officer and rival Yon-Rogg, that Danvers was exposed to an unknown radiation by the Kree Psyche-Magnitron. The extraterrestrial radiation merged Danvers' biology with Captain Marvels making her a human/Kree hybrid although apparently not affecting Mar-Vell. Eventually her altered biology granted her superhuman abilities, which she used to fight against injustice as Ms. Marvel.
Eventually Danvers was betrayed by the mutant terrorist known as Mystique, who had her protégé Rogue use her abilities to rob Ms. Marvel of her powers. In addition to draining her powers, Rogue's ability also robbed Danvers of her memories. With the intervention of Professor Xavier, she was able to regain her memories, but not the emotional bonds linked to those memories.
During an adventure in space with the X-Men, Danvers was subjected to involuntary testing by the alien insects known as the Brood. The test had the side effect of reactivating and boosting Danvers abilities to levels comparable to the Silver Surfer. Danvers decided to remain in space with a group known as the Starjammers, assuming the name Binary.
Eventually Danvers would return to Earth in an attempt to reconcile her relationships with friends, family and teammates. She would rejoin the ranks of the Avengers, assuming an identity that paid homage to her career as a military aviator, for a time calling herself Warbird. Eventually, she returned to using Ms. Marvel as her codename.
When it was realized that the Phoenix Force was heading toward Earth, Ms. Marvel was part of the team sent to stall/take out the Phoenix Force. She encountered a resurrected Captain Marvel, who was revived by the Kree Empire using the M'Krann crystal in order to unite and protect all of the Kree against the Phoenix Force. Mar-Vell along with all the other Kree and everyone powered by Kree energies are brainwashed into believing that the Phoenix brings their salvation. Vision manages to free Mar-Vell and the other Kree from the illusion but it is too late to evacuate the planet as the Phoenix draws ever closer to Halaa. Mar-Vell realizes that the Phoenix is coming to claim the portion of its power that was used to resurrect him and still resides within him. He sacrifices himself to save Hala and the Phoenix departs for Earth. She realized what Mar-Vell meant for her and decide to take his legacy, becoming the new Captain Marvel in the aftermath of the war against the X-Men.
Current Version:
Captain Marvel
Former Versions:
Carol Danvers
Ms. Marvel
Binary
Accuser Car-Ell