Blot the stain immediately with a clean cloth, use a carpet stain remover, and avoid rubbing, which can spread the stain. For tough stains, consider professional cleaning.