Vatican police, alerted to strange goings-on at an apartment in the city-state, stumbled upon a drug-fueled gay sex party in full swing and arrested one of the occupants, said to be an aide to a top adviser of Pope Francis.

The bust, which happened in late June, was first reported by the Italian daily newspaper Il Fatto Quotidiano.

According to media, the apartment was owned by the Vatican’s Congregation for the Doctrine of the Faith, the office that processes and evaluates all cases of priests accused of raping or molesting minors. Days later Pope Francis removed the prefect who headed the congregation, although it was not known if it was due to the orgy.

Get The Times of Israel's Daily Edition by email and never miss our top stories Free Sign Up

Vatican City cops were called in after neighbors complained of “constant coming and going” from the apartment and other unusual behavior.

The arrested man, not named in media, was a secretary of Cardinal Francesco Coccopalmerio who is president of the Vatican’s Pontifical Council for Legislative Texts, which interprets laws for the Church.

Coccopalmerio had reportedly in the past recommended the aide for promotion to bishop.

Il Fatto Quotidiano said the pope was furious about the incident. The aide was taken for detox at a clinic and hospital and was said to be “currently in retreat” somewhere in Italy.

According to The Australian, the aide has previously spent time recovering from two incidents of drug overdose, once at a Rome hospital and another time in an Italian monastery. It was unclear what charges he may face as gay sex is not illegal in Vatican City.

Earlier this month Francis declined to renew the mandate of German Cardinal Gerhard Mueller as prefect of the Congregation for the Doctrine of the Faith, which handles sex abuse claims.

The measure came just days after France released another top Vatican cardinal to return home to stand trial for alleged sexual assault.

The developments underscore how the Catholic Church’s sex abuse crisis has caught up with Francis, threatening to tarnish his legacy over a series of questionable appointments and decisions in his four-year papacy.

Francis named Mueller’s deputy, Monsignor Luis Ladaria Ferrer, a Spanish Jesuit, to run the powerful office instead.

During Mueller’s five-year term, the congregation amassed a 2,000-case backlog and came under blistering criticism from abuse survivors.

Last Thursday, Francis granted another Vatican hardliner, Cardinal George Pell, a leave of absence to return to his native Australia to face trial on multiple charges of sexual assault stemming from years ago.

Pell has denied the charges. Still, Francis has come under criticism for having named him to the powerful position of the Vatican’s money czar in 2014 in the first place, given that accusations of wrongdoing had dogged him even then. Pell has been widely denounced at home for mishandling abuse cases while he was a bishop and of having treated victims harshly in seeking to protect the church from abuse-related civil litigation.

AP contributed to this report.