A 23-year-old man died after a trench collapsed on him while working at a construction site Wednesday, deputies say.