Two drivers who left their cars on railway tracks in the path of an oncoming train will not be charged, despite the collision leaving thousands of commuters stranded at stations in Melbourne's south-east during the morning peak.

It is believed the drivers of two cars were involved in a minor nose-to-tail crash at Brunt Road, Officer, about 7am and then left their vehicles on the tracks to exchange details.

An oncoming train on the Pakenham line, which had only just reopened after a partial closures of more than a week for Metro Tunnel works, applied its emergency brakes but hit the cars.

Emergency services have responded after two vehicles were struck by a train in Officer. Credit:Brett Ferguson

One of the cars was trapped under the train and pushed about 150 metres down the tracks. The other car was pushed into the boom gates and ended up on the opposite side of the intersection.