Nobody was hurt when a train collided with an SUV at a rail crossing in Alliston Friday morning.

The collision happened Jan. 24 around 10:45 a.m. at the CP Rail crossing on Victoria Street between Centre and Dufferin.

Nottawasaga OPP Const. Katy Viccary said an SUV was heading westbound on Victoria Street when it stalled over the tracks.

She said a southbound train was alerted about the vehicle and slowed its speed, but the collision still took place.

Viccary said all of the occupants, a mother and two children, exited the vehicle before the collision happened, and nobody was hurt.

Jenna Smith was inside Champ Burger with her mom and two kids grabbing lunch when she looked out the window and saw the vehicle was in trouble.

"I...realized that car was not moving and the train bells we're going off," she told Simcoe.com. "People were frantically trying to get the vehicle off the tracks."

Smith ran outside and offered to help the mom with her daughter.

"I asked the mom if I could pick up her little girl and hug her, and she said yes," she said. "So I did, and she started to cry. So I asked mom again if I could take her inside and get her some juice, and she said yes."

While the little girl waited with Smith and her family, staff at the restaurant also tried their best to comfort her by playing cartoons on the television.