Floods, droughts and warfare transformed the landscape in the 16th and 17th centuries, changing what people grew, where they lived and how they defended themselves.