Vacuum regularly using a vacuum cleaner with an adjustable beater bar or brush
Blot spills as soon as they occur. Avoid rubbing or pressing the spill further into the rug, gently lift the liquid with a clean cloth or paper towel.
For spill residue, combine a small amount of mild detergent with a modest amount of carbonated water, and further blot with a gentle lifting motion.
If a spot still remains, contact a local professional carpet repair and cleaning company.
Some materials require professional cleaning, see more on cleaning to learn more.