The death of young rapper Mac Miller last year came as a shock to many people.

Miller, who had been in a relationship with Ariana Grande in the past, had recently released his fifth studio album 'Swimming' to rave reviews. He had struggled with addition in the past.

He was just 26 when he was found dead in his California home after what was assumed to be an accidental overdose.

Now, however, a man has been arrested in connection with his death. 28-year-old Cameron James Pettit is charged with selling Miller counterfeit oxycodone pills that contained fentanyl. If you'll remember, fentanyl is the deadly painkiller that was responsible for both Prince and Michael Jackson's deaths. It is 50 times stronger than heroin.

Prosecutors allege that Pettit sold Miller counterfeit oxycodone pills that were laced with fentanyl. He also supplied him with cocaine and Xanax. Miller also obtained drugs from a prostitute that he spent the night with on September 5th, but these drugs did not contain fentanyl.

After news of Miller's death broke, Pettit sent a friend messages on Instagram saying: "Most likely I will die in jail" and “I’m gonna get off the grid. Move to another country.”