Iftiqar Ali, 52, had been a licensed taxi driver since 2017.
He was caught with a £10,570 stash of the Class C sleeping pill type drugs, Bradford Crown Court heard on Friday.
Ali had Diazapam tablets in his hand after he was stopped by the police on Shay Lane in Halifax on February 28 last year.
Leeds Festival road closures: Aberford village will be closed to festival traffic after being used as a 'rat run'
Man dead after a paragliding accident near to Leeds
'Highly organised' Leeds thieves caught by own technology after tracking movement of business owners
Leeds United supporters issued warning not to walk on M621 after minibus drops fans off on motorway slip road
'I'll throw acid over you': Leeds dad high on cocaine made vile threats to ex
A search of his home turned up a stash of over 10,000 tablets consisting of Diazapam, Etizolam and Tamazepam.
He was jailed for 21 months.