Katy Perry‘s 2013 hit “Dark Horse” featuring Juicy J has been found to infringe copyrighted material.

A Los Angeles jury ruled that the song infringed on the 2008 rap song “Joyful Noise” by Christian rapper Flame featuring Lecrae and John Reilly.

On July 29, the jurors decided that the beat of “Dark Horse” improperly copied the beat of “Joyful Noise” in a unanimous decision.

50 CELEBRITIES WHO DIED IN 2018 – TRIBUTE SLIDESHOW

Perry’s song, which was featured in her fourth album, Prism, was produced by Dr.Luke, Max Martin and Cirkut. People loved the song for its mix of techno, pop and trap, as well as Ancient Egyptian-inspired music video.

The song peaked at No. 1 on Billboard’s Pop chart.

Flame’s song was released by himself and Marcus Gray in 2008 on the rapper’s fourth album, Our World: Redeemed. The song was nominated by the Gospel Music Association for Rap/Hip-Hop Recorded Song of the Year in 2009 and the album was nominated for a 2009 Grammy in the category of Best Rock or Rap Gospel Album, according to National Public Radio.

Gray originally filed a lawsuit against Perry and her collaborators in 2014 when her song became more popular.

During the trial on Monday, Perry and her co-defendants claimed that they had never heard of “Joyful Noise,” but the jury ruled that the notes of the beat from Perry’s song were too similar to Flame’s.

Perry, as well as songwriter Sarah Hudson, Juicy J, Dr. Luke, Martin and Cirkut, were all ruled liable.

The jury has yet to decide how much Perry and her collaborators owe Gray for copyright infringement.