CAIRO — At least 37 people were killed and 123 were injured after two trains collided near the Egyptian port city of Alexandria on Friday, in the deadliest episode in years on Egypt’s creaking railway network. .

The accident occurred near the Khorshid train station when a train traveling from Cairo slammed into the back of a train from Port Said, on the Suez Canal, Egypt’s railway authority said.

Photos on social media and published in Egypt news media outlets showed hundreds of people standing outside mangled carriages, several of which had derailed. A number of bodies were laid out on dusty ground beside a field, covered in sheets.