A rookie driver who damaged a parked car and crashed into a wall in Bradford during a late-night police pursuit has been given a suspended jail sentence.

A judge heard how 21-year-old Haseeb Mateen continued to rev the engine of the BMW even after the crash and only stopped when police officers smashed the driver’s side window of the vehicle.

Pharmacy assistant Mateen, who had no previous convictions, had ended up behind the wheel after travelling to Bradford from London to meet up with “so-called friends” he had been chatting to over the internet.

Prosecutor Marte Alnaes told Bradford Crown Court that other men had been in the BMW with Mateen when police officers on patrol saw it make sharp turns into streets in the Barkerend Road area last month.

Mateen stopped the BMW to allow his passengers to get out, but then sped off again in a bid to get away from police.

Ms Alnaes described how the BMW was driven at twice the 20mph limit for the residential streets, went through a red light and clipped the wing mirror of a parked car.

“Rather than stopping at this point the defendant continued undeterred,” said Ms Alnaes.

She said the BMW mounted a raised kerb and eventually collided with a wall.

As police officers approached the vehicle Mateen continued to rev the engine and appeared to be struggling with the gear stick.

Ms Alnaes said Mateen eventually held his hands up after officers smashed the window and he was removed from the BMW.

The court heard that Mateen, of Sutcliffe Road, London, only held a provisional licence and was uninsured at the time.

At a hearing before Bradford and Keighley magistrates, Mateen admitted offences of dangerous driving, driving without insurance and driving otherwise than in accordance with a licence.

Judge Advocate Edward Legard was told that when Mateen was a juvenile he had a psychological assessment which suggested that he was very immature and impressionable and succumbed to peer pressure.

The judge said Mateen’s appearance before a crown court was “something of a mystery”.

“I’ve no doubt it has come as something of a shock to your friends, family and particularly your mother,” the judge told Mateen.

“You’ve brought shame on your mum by being here before me today.”

He said something had caused Mateen to behave wholly out of character and irrationally and it was matter of good fortune that nobody was injured or killed.

“You continued after a collision and it took the police to smash the driver’s side window in order to remove you from the car and prevent any further harm from happening,” said the judge.

The judge explained that eight months in prison would be deserved, but after giving the case detailed consideration he had decided to attach conditions to a suspended jail sentence.

The judge suspended the eight months in prison for a period of 12 months and told Mateen he would have to do 150 hours unpaid work for the community.

He will also have to abide by an electronically monitored curfew at his home in London between 9pm and 6am for the next 16 weeks.

Mateen will have to pay £150 costs and he was banned from driving for 15 months and ordered to take an extended re-test at the end of the disqualification period.