The incident took place around 1 a.m. Tuesday at an isolated place on the highway near Nayi Mandi Kotwali area.
The woman raised an alarm which people at a roadside eatery heard. They ran to rescue her. The driver was hauled up and handed over to police.
The driver was identified as Samay Singh, resident of Saharanpur district in the state, police said.