A fiery train crash killed at least 20 people at Cairo's main railway station on Wednesday, Egyptian security and medical sources said.

The accident, which sparked a major blaze at the Ramses station, also injured 40 others, the sources said.

Egyptian state TV confirmed the figures. 

The fire broke out after a train crashed into a steel barrier, the sources said.

Photos showed a thick cloud of black smoke billowing around the station. Firefighters were seen hosing down the charred wreckage of the train.

Footage also showed fire engulfing the train and a nearby platform and people rushing to help the casualties. 

Ambulances and rescue teams were dispatched to the site, medical sources said. 

"Any person found to be negligent will be held accountable and it will be severe," Prime Minister Mostafa Madbouli said as he arrived at the site.

Egyptians have long complained that the government has failed to deal with chronic transport problems in the country, where roads are as poorly maintained as railway lines.

The official statistics agency says there were 1,793 train accidents in 2017.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.