The most important rule for cleaning any stain is to clean the spilled matter immediately. If you don't act right away, you risk ruining your carpet forever. If you spill something on your carpet, grab a cloth. First, clean up any solid matter, then blot at the stain until you've lifted as much of the stain as possible.