Two Horseheads police officers were taken to the hospital after their patrol car was hit Thursday.

Shortly before 1 a.m. the officers stopped a vehicle for a traffic violation on Watkins Road in the town of Horseheads.

While pulled over on the side of the road, their patrol vehicle was rear-ended by another vehicle.

The officers were taken to a nearby medical center for minor injuries and have since been released.

The driver of the vehicle that hit the patrol car was taken into custody as the investigation continues.