Rail services between Trowbridge and Westbury were suspended last night after a train struck and killed a pedestrian on the line.
Emergency services attended the scene at Heywood near where the train stopped.
It is believed the person struck by the train died on impact at around 8.30pm.
A temporary bus service was initiated between Trowbridge and Westbury train stations, and the line was closed for a number of hours while Wiltshire Police carried out their investigations.
At this stage, police do not believe the incident to be suspicious.