From flooding to farming