In the Tang dynasty, Bai Juyi was appointed governor of Hangzhou.[16] Already an accomplished poet, his deeds at Hangzhou have led to his being praised as a great governor. He noticed that the farmland nearby depended on the water of West Lake, but due to the negligence of previous governors, the old dyke had collapsed, and the lake so dried out that the local farmers were suffering from severe drought. He ordered the construction of a stronger and taller dyke, with a dam to control the flow of water, thus providing water for irrigation and mitigating the drought problem.