LOS ANGELES (AP) — Britney is free. A Los Angeles judge on Friday ended the conservatorship that has controlled Britney Spears’ life and money for nearly 14 years.

The decision capped a stunning five-month odyssey that saw Spears publicly demand the end of the conservatorship, hire her own attorney, have her father removed from power and finally win the freedom to make her own medical, financial and personal decisions for the first time since 2008.

The move by Superior Court Judge Brenda Penny was expected, with little support left for prolonging the legal arrangement. But Penny offered no clear signals about what she would decide. As recently as last spring, it appeared that the conservatorship could continue for years. Then it unraveled with surprising speed.

Key to the unraveling was a speech Spears made at a hearing in June when she passionately described the restrictions and scrutiny of her life as “abusive.” She demanded that the conservatorship end without any prying evaluation of her mental state.

Legal experts at the time said that was unlikely to happen, and would represent a departure from common court practice.

But a judge allowed her to hire an attorney of her choice, Mathew Rosengart, at a July hearing in which she again complained about the grief the conservatorship caused and demanded that it end.

Rosengart made it his goal first to have James Spears removed from his role as conservator of his daughter’s finances before working to end the conservatorship altogether. The judge suspended James Spears at a September hearing, citing the “toxic environment” his presence created.

But more courtroom battles could lie ahead.

Rosengart has further vowed to pursue an investigation of James Spears’ role in the conservatorship. He said he and his team have found mismanagement of Britney Spears’ finances, suggesting she could pursue further legal action. Court records put her net worth at about $60 million.

He also said that law enforcement should investigate revelations in a New York Times documentary about a listening device placed in her bedroom.

James Spears’ attorneys said Rosengart’s allegations ranged from unsubstantiated to impossible, and that he only ever acted in his daughter’s best interest.

The post-conservatorship fight has in some ways already begun. James Spears has parted ways with the attorneys who helped him operate it, and he has hired Alex Weingarten, a lawyer specializing in the kind of litigation that may be coming.

In court filings last week, Britney Spears’ former business managers, Tri Star Sports and Entertainment Group, pushed back against Rosengart’s demands for documents about the firm’s involvement in the conservatorship from 2008 to 2018. The group also denied any role in or knowledge of any surveillance of the singer.

Jodi Montgomery, the court-appointed conservator who oversaw the singer’s life and medical decisions starting in 2019, developed a care plan with her therapists and doctors to guide Spears through the end of the conservatorship and its aftermath.

Britney Spears was a 26-year-old new mother at the height of her career when her father established the conservatorship, at first on a temporary basis, in February 2008 after a series of public mental health struggles.

It ends a few weeks before her 40th birthday, with her sons in their mid-teens and her career on indefinite hold, as she is engaged to be married a second time.

A turning point came early in 2019, when she canceled a planned concert residency in Las Vegas.

Convinced she was put in a mental hospital against her will, fans began coalescing and demanding that the court #FreeBritney. At first, they were dismissed as conspiracy theorists, but the singer herself gave them validation in 2020 in a series of court filings that said they were correct to demand greater transparency and scrutiny of her legal situation.

Those filings proved to be the first indication from Spears, who had remained silent on the conservatorship for years, that she would seek major changes.