The engine of a goods train with 10 bogies jumped tracks at the Kalamassery station here on Wednesday morning affecting traffic along the Ernakulam-Shornur route.
The incident took place around 5.30 a.m. while shunting of the goods train was progressing at the railway yard near Kalamassery.
Railway sources said that the engine slipped off the track and hit the overhead cable electric post causing it to bend. Traffic was disrupted for more than four hours.
According to railway officials, normal traffic would be restored by afternoon.
Traffic has been diverted through the down line leading towards Thiruvananthapuram.