Police were called out to Leeds Road, Mirfield, after a road accident was reported at 12.30pm.
Officers found that a man in his 50s had taken ill while driving a silver Ford Focus at the junction near the Three Nuns Inn.
He was taken to Pinderfields General Hospital with minor injuries.