A train carrying passengers has derailed in Victoria, leaving some commuters trapped.

The Country Fire Authority said several carriages on the Sydney to Melbourne XPT train derailed near Wallan station, 45km north of Melbourne, on Thursday evening around 7.45pm.

V/Line has confirmed the NSW Countrylink train derailed about 500m north of Wallan station, near the Epping-Kilmore Road.

“Paramedics are treating a number of people after an incident involving a train at Wallan,” Ambulance Victoria said in a statement.

“ Emergency services were called at about 7.45pm.”

Photographs show a number of carriages rolled over and off the tracks.