A driver sped off at 80mph and went straight through a red light when an officer turned on the blue lights of his police car.
Daniel Wynne, who was on licence at the time, led police on a high-speed chase and even kept driving once his tyres had been punctured by a stinger device.
Sentencing him at Cardiff Crown Court, Judge Richard Williams said: “This was a deliberate and persistent incident.”
Meirion Davies, prosecuting, said the incident happened during the early hours of June 30 in Caerphilly.
The court heard a police officer on the A469 turned on his blue lights in response to another incident but saw a silver Renault Megane react by driving away through a red light.
Two officers followed the vehicle, which reached 80mph in an urban area with some 30mph and 40mph speed limits. The driving was caught on camera by the pursuing police car.
The court heard Wynne mounted the kerb in Nantgarw Road. Officers used a stinger device but the defendant carried on at 60mph even while his tyres were deflating.
They tried again but he kept driving at 40mph, through another red light, until he lost control and was detained.
Mr Davies said Wynne appeared pale and told the officers he had taken heroin and valium although the defendant later disputed that and stated he was not a heroin user. He was not charged with driving under the influence of drugs.
The court heard he had 63 previous offences on his record including assault, public disorder, and theft. He was recalled for a section 18 offence.
Wynne, 35, from Fleur-De-Lys Avenue in Pontllanfraith, Blackwood, admitted dangerous driving, failing to stop, and driving without a licence or insurance.
Edward Mitchard, defending, said his client was back in the community for 18 months after being released from prison but his contact with the Probation Service was limited due to coronavirus.
Mr Mitchard told the court Wynne did not get enough support from probation and did take valium on the day of the incident. He agreed to a drugs test at Ystrad Mynach Police Station and was not charged.
Judge Williams said: “This was a pursuit over a considerable distance at high speed. It involved a flagrant disregard for the rules of the road and the safety of others.”
Wynne was sent to prison for 10 months and disqualified from driving for five years from the time of his release. He will have to pass an extended driving test.