A. Across the river a perfect dam was built.
B. A perfect dam has been built by them across the river.
C. A perfect dam should have been built by them.
D. Across the river was a perfect dam.
Dam is an object so has been used and the they in the active voice has become them in the passive voice.