Greenville County chief deputy coroner Mike Ellis says the accident happened late Thursday morning when a piece of equipment rolled in a trench.
Jennifer DeWitt with the Greenville Water System says a crew was installing pipes when the accident occurred. Ellis says the trench was about 16 feet deep and 12 feet across.
Another worker was seriously injured.
Ellis says the dead man was 28-year-old Pedro Alberto Miguel Perez, who died at the scene.
Sam Schudel was in serious condition at Greenville Memorial Hospital after he was trapped and had to be removed from the trench.
No other injuries were reported.