To fix waterlogged soil, you aerate the soil by mixing in some well-rotted manure or compost to help improve drainage and add nutrients to your soil. If you have heavy clay soil, adding organic matter will help improve its structure so that it drains better in heavy rain.