An 18-year-old man is in a critical condition in hospital after the 4x4 vehicle he was driving was hit by a train at an unmanned level crossing, police said.
The man was airlifted to hospital after the crash just outside Stranraer, Dumfries and Galloway, shortly before 2pm on Sunday. Police said the driver of the car was taken to the Southern General Hospital in Glasgow.
The train passengers were taken to a triage centre in Stranraer.
On Monday the car driver's condition was described as critical but stable. He was the only person inside the vehicle.
Dumfries and Galloway Constabulary said the incident happened on the Kilmarnock to Stranraer line and involved a train with two carriages.
Fire, police and ambulance crews attended the scene in the Dunragit area.
The crash blocked the train line and damaged the car extensively, police said.
A force spokesman said: "Just before 2pm a train collided with a car at a level crossing just outside Stranraer.
"The train passengers, which were about a dozen, were taken to Stranraer to be checked over.
"An investigation will be carried out into what happened."
ScotRail said the driver of the train and one passenger were treated for shock, while the other eight passengers have no immediately reported injuries.
The train involved in the accident, which happened at Little Genoch Level Crossing between Dunragit and Stranraer, was the 11.42am Glasgow Central to Stranraer service.
The vehicle involved in the incident was a Mitsubishi Shogun 4x4, police said.
A ScotRail spokeswoman said alternative transport was arranged.