He pleaded guilty to possession of heroin and crack cocaine with intent to supply.
Kaine Cochrane 23, of Cypress Road, Dudley has been jailed for five years and seven months.
Cochrane was arrested when detectives from Nuneaton Proactive CID searched a flat in Borough Way, Nuneaton after spotting a suspected drug deal in November 2021.
The officers found Cochrane in the flat along with drugs, scales and cash.
He pleaded guilty to possession of heroin and crack cocaine with intent to supply, and being concerned about the supply of crack cocaine and heroin.
Detective Constable Jeni-Leigh Gore said: “Drug dealing causes a whole range of issues for the wider community including violence, theft and antisocial behaviour. This makes people feel unsafe in their homes and we won’t tolerate it.
“We target areas with known drug problems and patrol in plain clothes and unmarked cars looking for criminal activity."