Kesha and Dr. Luke have agreed to resolve a decade-long legal battle out of court ahead of its scheduled trial next month.
In October 2004, singer Kesha filed a lawsuit against Dr. Luke, real name Lukasz Gottwald, in a California state court where she alleged that the producer had sexually assaulted, battered, and harassed her in 2005.
In response, Dr. Luke sued Kesha in New York for defamation, which was scheduled for trial in July.
But the pair have now released a joint statement as they agreed to resolve the matter out of court.
Taking to Instagram on Thursday, both parties released a public statement, which began with: "Kesha and Dr. Luke have agreed to a resolution of the lawsuit, and have agreed to issue and post a joint statement regarding that resolution.
Kesha had hidden engagement to mystery ex-partner but called it offIt was added: "In resolution of that lawsuit, Kesha and Dr. Luke each state the following," before Kesha wrote: "Only God knows what happened that night. As I have always said, I cannot recount everything that happened.
"I am looking forward to closing the door on this chapter of my life and beginning a new one. I wish nothing but peace to all parties in involved."
Dr. Luke wrote: "While I appreciate Kesha again acknowledging that she cannot recount what happened that night in 2005. I am absolutely certain that nothing happened.
"I never drugged or assaulted her and would never do that to anyone. For the sake of my family, I have vigorously fought to clear my name for nearly 10 years. It is time for me to put this difficult matter behind me and move on with my life. I wish Kesha well."
Kesha and Dr. Luke have been battling it out in the courtrooms since 2014, with the latter always maintaining his innocence.
Meanwhile, in 2016, a judge denied Kesha's request to be released from her Kemosabe record label contract, stating that there was "no showing of irreparable harm" to her career.
Despite still being under contract to Dr. Luke's Kemosabe, she detailed her hardships during her legal woes in her song Gag Order.
Speaking about her decision to release the song, she said in her Shape interview released this week: "I was doing myself a disservice as an artist to just placate what I felt like people wanted from me.
"I had to shed light on the darker sides of what happens in my mind. This was me saying, 'Yeah, I've had this self-imposed, implied gag order since I can remember, 'cause I'm still in litigation.'"
Follow the Mirror US News page on Facebook to make sure you're not missing out.
Kesha hits back at ‘dark side’ of music industry on explosive album Gag Order