Two people are in hospital after the minivan they were travelling in collided with a train early Sunday morning. 

Both occupants of the minivan — a man and a woman in their mid-40s — had to be extricated from the vehicle, which sustained significant damage from the initial impact and subsequent thrashing from what Emergency Medical Services called "other rail infrastructure."

The accident happened at a level crossing in the 5900 block of 17th Avenue S.E. around 12:15 a.m. according to EMS.

The man and the woman were both taken to Foothills hospital in serious, but non-life threatening condition. 

Police and rail officials are investigating the cause of the collision.