Daniel Cachucho and Ernest Kalule, both 20, embarked on a mission to offload crack cocaine and heroin to drug users in Portsmouth in order to profit from other people's misery.
But the pair were caught in the act by police in August last year when doing a deal in Fratton Road, Portsmouth Crown Court heard.
An unmarked police car patrolling the area saw the two men in a Vauxhall Astra acting suspiciously with the car making stop-offs involving Kalule getting out the vehicle before another male got in.
Seven - including five teenagers - arrested after Lower Drayton Lane burglary in Portsmouth
Unidentified woman’s body found in water as Hampshire police investigate ‘unexplained’ death
Woman, 44, whose large Dobermann dog mauled girl, 3, on Leigh Park street released back into neighbourhood by police
Plans for redevelopment of Knight and Lee in Southsea get the green light - and work will begin soon, vows developer That Group
17-year-old girl charged with assisting offender in Frantisek Olah murder investigation in Basingstoke murder investigation
'˜The defendants were seen in the car acting suspiciously by an unmarked police car before it pulled into the Fratton Community Centre,' prosecutor Anthony Bailey said.
'˜Kalule was seen getting out of the back of the car before it drove off at speed. A gaunt man was then seen getting in the car. Police believed they were drug dealing.'
Officers then carried out a search of the car where they found wraps with heroin and crack cocaine with a street value of Â£2,000.
After the pair were arrested and taken to custody they made a surprising admission. '˜They admitted to trying to start up a new drugs line in Portsmouth in order to make money,' Mr Bailey said.
Neither defendant had any relevant convictions for drug dealing.
Judge Roger Hetherington said: '˜People like both of you who come down to places like Portsmouth are the scourge of so many lives affected by drugs.
'˜These people then become addicted and embark on a life of crime to feed their addiction.Â Maybe you would have carried on and established a drugs line to benefit financiallyÂ if you were not apprehended.'Â
Judge Hetherington sentenced Cachucho, of Station Street, Newham, London, and Kalule, of Bute Street, Luton, to 31 months and 28 months prison respectively.