Emperor Yu, the legendary ruler in ancient China was famous for creating a system of flood control and a system of irrigation canals that diverted the flood waters into the fields. He established the Xia dynasty, which is considered to be China's first dynasty.