In 1362, after a generation of unprecedented floods King-Count Peter IV ordered a study of diverting the beds of the Têt and Agly rivers, in order to develop a river management program which was to control floods and preserve good land in the county of Roussillon. His order and subsequent measures to manage the counties rivers reveal environmental awareness and responsibility in an emerging state. However, local resistance and rising costs ended these measures in the early fifteenth century, after which only local measures were taken to control floods.