The director of Egypt's railways, Hanafi Abdel Qawi, has been dismissed after a train crash outside Cairo that killed 58 and injured more than 140.
The trains were packed with commuters
A railway official said one train ploughed into another which had stopped just outside a station in Qalyoub, 20km (12 miles) from Cairo.
An investigation has been launched into the incident.
It is Egypt's deadliest rail accident since 2002 when a fire broke out on a train, killing more than 370 people.
Egypt has a poor record on train safety, with several fatal accidents happening every year.
Blaze on board
The trains were both travelling from the Nile Delta south towards Cairo early on Monday morning, crowded with many passengers on their usual commute to work in the capital.
The train rammed into the back of the other which had stopped on the line, causing carriages to overturn and catch fire.
One witness told Reuters news agency how bystanders had tried to warn the driver of the stationary train that another train was bearing down on him.
"We kept saying 'Driver, driver, a train is coming' so the driver moved... and while he was moving, the two trains impacted."
The trains were travelling from the towns of Mansurah, 130km (80 miles) away, and Benha, 50km (30 miles) from the capital, and were on the same line.