Cairo - At least 36 people were killed as two trains collided Friday outside the Mediterranean city of Alexandria, in one of the deadliest in a string of such accidents in Egypt, the health ministry said.
The crash also injured 123 people, the ministry said in a statement.
Footage on the state broadcaster showed one train had partly keeled over in the crash, and medics were seen moving the dead and injured to ambulances.
Transport ministry officials, quoted on state television, said the crash was probably caused by a malfunction in one train that brought it to a halt on the rails. The other train then crashed into it.
One of them had been heading from Cairo to the northern city of Alexandria and the other from the canal city of Port Said, east of the capital, to Alexandria.
The dead and injured were initially placed on blankets by the sides of the tracks amid farmland on the outskirts of Alexandria.
Assistant health minister Sharif Wadi told state television that most of the injured had been taken to hospital.
Egypt's transport minister has ordered an investigation into the crash, pledging to "hold accountable" whoever was responsible, state television reported.
It was the deadliest train accident in the North African country since a train ploughed into a bus carrying schoolchildren in November 2012, killing 47 people.
That accident had jolted the government which ordered an investigation and sacked the transport minister and the head of the railway authority.
The accident was blamed on a train signal operator who fell asleep on the job.
The probe, however, did not prevent further accidents. Months later a train carrying military conscripts derailed, killing 17 people.
Almost a year later, a collision between a train and a bus killed 27 people south of Cairo.
People gather at the site of a train collision in the area of Khorshid, in Egypts Mediterranean city of Alexandria. (File:AFP)
They had been returning from a wedding when the train ploughed into their bus and a truck at a railway crossing.
Egyptians have long complained that the government has failed to deal with chronic transport problems, with roads as poorly maintained as railway lines.
There have been many other fatal crashes on the busy rail network.
In July 2008, at least 44 people died near Marsa Matruh in northwest Egypt when a runaway truck hurtled into bus, truck and several cars waiting at a level crossing, shunting the vehicles into the path of a train.
In August 2006, at least 58 Egyptians were killed and 144 wounded in a collision between two trains travelling on the same track.
Egyptian security forces stand guard at the site of a train collision in the area of Khorshid, in Egypts Mediterranean city of Alexandria. (File AFP)
In the wake of that crash, an Egyptian court sentenced 14 railway employees to one year in prison for neglect.
The deadliest accident on Egypt's railways dates back to 2002 when 373 people died as a fire ripped through a crowded train south of the capital.