Members of the public were put “at risk of serious injury or worse” during an illegal car meet, police said.
It happened between Sherburn-in-Elmet and South Milford at around 8.15pm last night (Sunday).
Officers said that “around 100 cars had travelled to the area, along with spectators, and were racing on the roads and driving dangerously”.
The vehicles began to disperse as police arrived, but officers have warned drivers that registration numbers have been recorded.
Drivers of any vehicles seen on camera driving dangerously “can expect a letter through the door”.
Inspector Clive Turner, of North Yorkshire Police’s roads policing group, said: “Driving in such a dangerous manner on public roads is completely unacceptable and risk the lives of those driving, those watching, and innocent members of the public.
“Quite simply, it won’t be tolerated and even if we didn’t stop you on the night, we are working through CCTV and many of those drivers can expect a notice through the door with details of their impending prosecution.
“We would advise anyone planning on attending an illegal event such as this, to think twice.”