A man from Union Mills has admitted drug dealing to pay off a £2,000 drug debt.
Simon Fletcher of Snugborough Avenue, appeared at Douglas Courthouse.
He admitted two counts of possessing cannabis with intent to supply it and one of possessing MDMA.
The court heard police found 74 grams of cannabis and 8.7 grams of MDMA in a car and at his home on February 19.
He told police he'd bought the drugs in a lane in Peel from a Snapchat contact, and he owed £2,000 to a dealer who'd threatened him.
He was bailed to appear again for sentencing on November 28.