Officers chased and caught Kalmit Josen, 53, after witnessing him doing a drugs deal on Hartley Street, Wolverhampton last September.
During the foot chase, they saw Josen slam his hand down on top of a hedge and on searching the bush a large black wrap with numerous brown and white wraps inside it was found and seized.
Josen, of Gorsebrook Road, Wolverhampton, admitted to four counts of possession of a Class A drug with intent to supply. He was also charged with handling stolen goods and dangerous driving.
He was sentenced on Monday at Wolverhampton Crown Court to four years and 10 months in prison and given a five year driving ban.
Inspector Stephanie Furber, from the Wolverhampton Neighbourhood Task Force at West Midlands Police, said: "Drugs and drug-related crime have a huge negative impact on our communities.
"We hope this activity sends a reassuring message to local people. They reported their concerns to us and we took action and will continue to address issues that affect people’s daily lives."
Laura Webster, from the force's CID department, which led the investigation, added: "We take a tough stance on the illegal use of drugs, which fuel crime and exploitation and can have long-term negative effects on users.
"Through the arrest and our subsequent investigation, more dangerous drugs are now off the streets and a drug dealer has effectively been put out of business."