Speed matters, but panic costs more than a stain. For most marks the first ten minutes should be gentle: blot, do not scrub, and never add heat.
Coffee and tea
Blot from the edge inwards with cool water and a clean cloth. A drop of mild washing-up liquid helps on milk-based drinks. Rinse thoroughly before it dries.
Red wine
Blot, then cover with salt or cornflour to lift the liquid, and rinse in cool water. Avoid white wine and heat — both can fix the colour.
Oil and grease
Do not rub. Apply a small amount of liquid detergent directly, leave it ten minutes, then wash at the warmest temperature the care label allows.
Ink
Place the stained side face down on a paper towel and dab the back with a little alcohol-based hand gel. Test on an inside seam first.
Grass and mud
Let mud dry, brush it off, then pre-treat with detergent. Washing while mud is wet just pushes soil deeper into the weave.
When to stop
If a mark has been through the dryer, or the fabric is silk, wool or viscose, leave it alone and bring it in. Home treatment on a delicate fibre can turn a removable stain into permanent damage.