A Los Angeles judge has cleared the way for Katy Perry to move forward with the purchase of a former convent.

The singer’s bid for the sprawling Hollywood-area property landed her in a months-long dispute between the Archdiocese of Los Angeles and a group of nuns who once lived there.

The Sisters of the Immaculate Heart of Mary argued the hilltop convent was theirs, and that they agreed to a $15.5m (£10.9m) deal with local restaurateur, Dana Hollister.

Nuns, Archdioceses, and Katy Perry Battle Over Los Feliz Retreat

The order of nuns argued the Roman villa-style property was theirs to sell

But the LA Archdiocese also claimed rights to the eight-acre estate and wanted to sell it to Perry after agreeing to a $14.5m (£10.2m) deal.

On Wednesday, a judge invalidated the sale of the Roman villa-style property to Ms Hollister, paving the way for Perry to complete her deal.

Attorneys for the Roar singer said in a statement that they were pleased with the ruling.

Representatives for the nuns and Ms Hollister did not respond to requests for comment.

The sisters suggested months ago that they did not want to sell to Perry because of her suggestive songs and provocative attire.

“Well, I found Katy Perry and I found her videos … if it’s all right to say, I wasn’t happy with any of it,” Sister Rita Callanan told the LA Times.

Perry’s bid to purchase the convent requires Vatican approval.