Cities are reducing the risk of flooding by preserving and restoring natural features both inside and beyond their urban footprint.