Complex sentence: Trial pits are dug before the construction.It is done to know the geology and the water table of that site.
Split into simpler sentences: Trial pits are dug before the construction. They are dug to determine the geology and the water table of that site.