At least 31 people were killed when a fuel tanker crashed and ignited a large fire on a highway surrounding Cairo on Wednesday, Egyptian authorities said.

The health ministry said the blaze on the ring road also injured at least 21 people and left more than two dozen cars and motorcycles charred. The figures are preliminary, and the health ministry said the death toll could rise.

State media reported that the fire broke out when the fuel truck overturned. The crash site was in Waraq, a densely populated neighborhood in Giza, part of Greater Cairo, according to the health ministry.

Ahmed Sameer, who was stuck in traffic after the road was blocked, said he saw the fuel truck and many cars on fire. He said he saw at least eight bodies removed from burned cars. "It was a huge fire, the cars got stuck together because of the fire," he said. "It was a shocking scene."

Rescue workers pulled people from burning cars, and an Associated Press video showed firefighters working to put out the spreading fire. Hundreds of people gathered near the scene.

President Abdel Fatah al-Sisi expressed condolences to the victims in a statement. The public prosecutor's office said DNA investigations were under way to identify the dead. Health Minister Khaled Abdel Ghaffar said the injured were taken to nearby hospitals and that he would travel to the scene.