Wayne McColl, 48 and Shane Gaffney, 49, both from Claughton, appeared at Liverpool Crown Court yesterday.
McColl was sentenced to 32 months; Gaffney to 27 months.
Both were first arrested in June and then again in July last year following a police operation looking into violence being committed in Birkenhead town centre and the links to drug activity.
Officers from #OpTarget local policing team on the Wirral have welcomed the sentencing.
Sergeant Alan McKeon, who leads the Wirral Op Target team said: "The two men were initially flagged to us by members of the community who reported the men were involved in supplying crack cocaine and heroin.