Jodi Arias will spend the rest of her life in prison

A judge on Monday sentenced convicted murderer Jodi Arias to life in prison without the possibility of release, ending a nearly seven-year-old case that attracted worldwide attention with its salacious details.

The decision by Judge Sherry Stephens was largely a formality after a jury deadlocked last month on whether to give Arias the death penalty or life in prison. The mistrial removed the death penalty as an option.

The only decision left was whether the judge would allow Arias, 34, to be eligible for release after 25 years. She declined to do that, meaning Arias will spend the rest of her life in prison.

Arias killed her on-again-off-again boyfriend Travis Alexander in 2008 in what prosecutors said was retaliation for his desire to break off the relationship. Arias shot Alexander and stabbed him nearly 30 times in his suburban Phoenix home before fleeing and driving to Utah to meet up with another romantic interest. She was arrested weeks later and initially denied any involvement.

International media attention soon followed after she did two television interviews in which she told a bizarre story of masked intruders breaking into the home and killing Alexander while she cowered in fear. She subsequently changed her story and said it was self-defense after Alexander attacked her on the day he died.

Her 2013 trial became a media circus as details of their kinky relationship and the violent crime scene emerged in court and were broadcast live. Spectators traveled to Phoenix and lined up in the middle of the night to get a seat in the courtroom to catch a glimpse of what had become to many a real-life soap opera.

Interest in the case intensified after Arias did a jailhouse interview minutes after she was convicted of murder, telling a local TV reporter that she preferred the death penalty over life in prison.

Judge Sherry Stephens sentenced Arias to life in prison. Reuters

"I would much rather die sooner than later. Longevity runs in my family, and I don't want to spend the rest of my natural life in one place," she said.

The original jury was deadlocked on whether to sentence her to death, setting up another penalty phase trial that began last year. After months of testimony and efforts by Arias' lawyers to portray Alexander as a sexual deviant who physically and emotionally abused her, the second jury also failed to reach a unanimous decision — this time 11-1 in favor of death.

The 11 jurors who wanted the death penalty said the holdout juror had an agenda and was sympathetic to Arias.