Flood relief was directed by the grand eunuch Li Xing, who founded the city of Anping and established temples to the river god there and at Huanglinggan.