Rewetting wetlands can help lock carbon in the ground, but fully flooding them may backfire by boosting methane emissions.