More plants are killed by too much water than by too little, and the reason is that both produce the same symptom. A wilting plant looks thirsty whether it is drowning or drying out.
Why waterlogging causes wilting
Roots need oxygen. In saturated soil the air spaces fill with water and the roots cannot respire, so they stop functioning and begin to die.
A plant with non-functioning roots cannot take up water, so it wilts, exactly as it would in a drought.
Watering it makes matters worse, and that is how the cycle continues until the plant dies.
Telling them apart
Feel the soil, ten centimetres down, beside the rootball. Do not judge by the surface, which dries first and tells you very little.
Dry and crumbly means drought. Wet, heavy, cold and possibly sour-smelling means waterlogging.
Other signs of overwatering: yellowing lower leaves, soft blackened stem bases, algae or moss on the soil surface, fungus gnats around a pot, and a general sour smell.
Roots tell you definitively. Healthy roots are white or pale and firm. Waterlogged roots are brown, soft and strip away easily between finger and thumb.
Containers
The commonest place it happens, and usually caused by a blocked drainage hole, a saucer left in place, or simply watering to a schedule rather than to need.
Check drainage holes are clear, stand pots on feet, and remove saucers except during a heatwave.
Water when the compost is drying rather than daily by habit, checking with a finger to the second knuckle.
In winter, water sparingly. Overwatering in cold weather kills more container plants than frost does.
Rescuing a waterlogged container plant
Stop watering. Move it under cover if rain is continuing.
Tip the plant out and look at the roots. Trim off anything brown and soft with clean secateurs.
Repot into fresh compost in a clean pot, ideally slightly smaller since a large pot of wet compost around a reduced root system will simply repeat the problem.
Water sparingly afterwards and keep it somewhere sheltered while it recovers.
Do not feed it. Fertiliser on damaged roots makes things worse.
Waterlogged ground
Where water stands on the surface for days after rain, the problem is the soil or the site rather than the watering.
Common causes are heavy clay, compaction from foot or vehicle traffic, a pan of compacted subsoil left by construction, and a naturally low-lying position.
Improving it
Add organic matter generously and repeatedly, applied to the surface each year, which opens up clay structure over several seasons.
Relieve compaction by forking through, and avoid walking on wet soil, which causes it in the first place. Use boards to spread your weight when you must.
Consider raised beds, which lift the roots above the problem and are far cheaper than land drainage.
Break through any compacted pan when planting, forking the base of the hole so it does not act as a sump.
Land drains and soakaways work and are expensive, and they need somewhere for the water to go.
Planting for it instead
Frequently the better answer. Ligularia, rodgersia, filipendula, astilbe, hostas, primula and iris ensata all thrive in damp ground, as do willows, alders and dogwoods among shrubs.
A permanently wet corner is an opportunity rather than a problem once you stop fighting it.
Plants most at risk
Anything Mediterranean: lavender, rosemary, cistus, santolina and most silver-leaved plants. These survive hard frost and die in cold wet soil, which is why they need grit and a raised position.
Bulbs, particularly tulips, alliums and lilies, which rot rather than freeze.
Newly planted trees and shrubs, where a hole dug in clay acts as a sump and fills with water.
The habit worth forming
Check before watering rather than watering by routine. Thirty seconds with a finger or a trowel prevents most of this.
Signs in a border
Moss and algae on the soil surface, water standing in footprints, a sour smell when you dig, and rushes or creeping buttercup colonising the area all indicate ground that stays too wet.
Worms are absent from genuinely waterlogged soil, which is a useful quick test when digging a hole.
Before planting
Dig a hole about thirty centimetres deep, fill it with water and see how long it takes to drain. If water is still standing after a few hours, the drainage is poor and the planting needs adjusting.