A driver smashed into a lamppost, narrowly missing the front of a town centre pub.
The black Volkswagen Coupe collided with the post outside The Jules Verne pub on Westgate just before 7.30pm on Thursday.
It is believed that the male driver had been taken ill at the wheel.
He was taken to Huddersfield Royal Infirmary with minor injuries.
Police attended the scene after being called by the ambulance service.