Copyright infringement in the music industry can be tricky sometimes. While some songs accidentally sound like others, many hit tracks we know have actually used samples or riffs from older records without attributing proper credit, which can get artists in legal trouble.

Click through this gallery to see which famous artists have been accused of plagiarism.

Nicki Minaj - 'Sorry' - Tracy Chapman is currently suing Nicki Minaj over using a sample from her song 'Baby Can I Hold You' in Minaj's track 'Sorry.' She claims that Minaj asked for permission to use the sample multiple times after the song was already recorded, but Chapman denied the request. Despite this, Minaj gave it to a DJ at a New York station to be played on his show.

Childish Gambino - ‘This is America’ - Donald Glover was accused of stealing his smash single from New York rapper Jase Harley's 'American Pharaoh.' Harley then posted a statement on Instagram, saying he was "humbled to be recognized" as an inspiration for the track.

Ed Sheeran, Faith Hill & Tim McGraw - ‘The Rest of Our Life’ - Country music star Jasmine Rae sued Sheeran, saying the song he wrote for Hill and McGraw was almost a copy of her track 'When I Found You.'

The Beatles - ‘Come Together’ - The band was also hit with a suit from legendary rock star Chuck Berry in 1973, who claimed the single borrowed both lines and melodies from his song 'You Can't Catch Me.'

Rod Stewart - ‘Do Ya Think I'm Sexy?’ - Rod Stewart's incredibly popular hit apparently used the hook from Jorge Ben's 1976 song 'Taj Mahal.' They reached a settlement and Stewart agreed to donate some of the proceeds to charity.

Radiohead - ‘Creep’ - Radiohead's classic anthem was the reason why the band ended up in court after being sued by the Hollies, who claimed the song took from their 1973 tune 'The Air I Breathe.' Tom Yorke eventually admitted he was "inspired" by it and now they all share royalties.

Lana Del Rey - ‘Get Free’ - The 'Creep' saga didn't stop there. Last year, people were quick to point out how similar Lana Del Rey's track 'Get Free,' from her latest album 'Lust for Life,' was to Radiohead's song. The band didn't press charges but asked to be credited.

Robin Thicke - ‘Blurred Lines’ - Robin Thicke's hit tune was engulfed in controversy for many different factors, but the main one may have been when Marvin Gaye's family sued him and Pharrell Williams for copyright infringement, claiming it was too similar to the late musician's song 'Got to Give It Up.'

Jay-Z - ‘Big Pimpin' - Jay-Z has had his fair share of plagiarism accusations, and one of them was about his hit 'Big Pimpin,' whose underlying hook comes from the song 'Khosara Khosara,' by Egyptian composer Baligh Hamdi.

Simple Plan - ‘Your Love Is a Lie’ - Simple Plan are huge fans of Green Day... some may say even a little too much. People were quick to point out their 2007 song was a tad too similar to Green Day's 'Boulevard of Broken Dreams.'

Katy Perry - ‘Roar’ - The dispute over whether Katy Perry had borrowed from Sara Bareilles's 'Brave' only ended when the latter stepped in and said they were friends and there was no reason to freak out.

Led Zeppelin - ‘Stairway to Heaven’ - After all these years, Zeppelin were accused of stealing the intro of their classic from fellow rockers Spirit's song 'Taurus.' Jimmy Page has since called the claims "ridiculous."

Coldplay - 'Viva La Vida' - The Grammy-winning song won them praise, but also trouble. Coldplay had to settle out of court with guitarist Joe Satriani, after he realized they had used "substantial original portions" of his song 'If I Could Fly.'

The Doors - ‘Hello, I Love You’ - Legendary band The Doors had to pay royalties to fellow legendary band The Kinks for lifting their riff from 'All Day and All of the Night' for their classic 'Hello, I Love You.'

Nirvana - ‘Come As You Are’ - Kurt Cobain was reportedly nervous for making the grunge anthem as the single for their album for its similarities to Killing Joke's 'Eighties.' The latter opted not to sue.

The Beach Boys - ‘Surfin' U.S.A.’ - Chuck Berry might be one of the most sampled artists ever, and this time it was The Beach Boys who grabbed his song 'Sweet Little Sixteen' and made it their own. The band's manager gave Berry the tune's copyright to avoid a lawsuit.

Jay-Z & Beyoncé - ‘Drunk in Love’ - Hungarian folk singer Mitsou sued the couple in 2014, claiming they had lifted the vocals from her song 'Bajba, Bajba Pelem.' The case went to court and Mitsou lost.

Famous artists who have been accused of plagiarism

Nicki Minaj was the latest artist to be accused of plagiarism

Copyright infringement in the music industry can be tricky sometimes. While some songs accidentally sound like others, many hit tracks we know have actually used samples or riffs from older records without attributing proper credit, which can get artists in legal trouble.

Click through this gallery to see which famous artists have been accused of plagiarism.