At least 25 people have been killed and 50 injured after a train crash sparked a large fire at Cairo's main railway station, Egyptian state media say.
The train hit a buffer stop near the end of a busy platform at Ramses Station, which is in the city centre, reports the BBC.
The collision caused the train's fuel tank to explode, setting the platform and nearby buildings alight.
The cause of the crash is not yet clear, but only hours later Transport Minister Hisham Arafat resigned.
During a visit to the scene, Prime Minister Mostafa Madbouli vowed to punish severely anyone who was found to have been negligent.
"We will identify who is responsible for the accident and they will be held accountable," he said.
President Abdul Fattah al-Sisi extended his condolences to the families of those who died and pledged to ensure that the injured received the support they needed.
Local media published what they said was CCTV footage showing people on the busy platform as the train hits the buffer at high speed and explodes.
Another video, taken from a CCTV camera above a nearby subway staircase, appears to show people fleeing as a fireball engulfs the platform.
The privately-owned news website al-Shorouk cited a source as saying the train had been undergoing maintenance when it started moving at speed towards the station's main building without a conductor.