How did Dayu control the waters thousands of miles and determine the sea territory?

Dayu's flood control (Gun Yu's flood control) is an ancient Han myth and legend, a famous ancient flood legend. He is a descendant of the Yellow Emperor. During the Three Sovereigns and Five Emperors period, the Yellow River flooded. Gun and Yu, father and son, were ordered by Emperors Yao and Shun to serve as Chongbo and Xiabo, responsible for water control.

Dayu led the people to fight against the floods caused by natural disasters, and finally won. Facing the raging floods, Dayu learned from Gun's failure to control the floods, changed the method of "blocking" and channeled the floods, which showed that he had the intelligence to lead the people to overcome difficulties; Dayu spent many years away from home in order to control the floods. Fight together with the people, regardless of personal interests, and "pass through the door three times without entering." Dayu controlled floods for 13 years. After exhausting his efforts and energy, he finally completed the great cause of flood control.