Complex sentence: These trenches were capped with dirt when they reached their capacity limit, but because of the heavy rainfall in the area the soil collapsed into the trenches and the trenches filled with water.
Split into simpler sentences: These trenches were capped with dirt when they reached their capacity. Because of the heavy rainfall, soil collapsed into the trenches and they filled with water.