A coach of a MEMU (Mainline Electric Multiple Unit) train bound for Puducherry derailed near Villupuram on Tuesday, an official said and a major accident was averted as the loco pilot noticed it and quickly halted the train.

No one was injured and the traffic was restored in about 3 hours, the official said adding the cause of the derailment would be known only following the completion of an inquiry, which has been ordered.