The following advices will help dealing with them.
If liquids such as coffee, tea, wine or the like get on the rug, cautious acting will avoid stains.
Wash out with lukewarm water and soap before the liquid binds to the wool.
It might be necessary to repeat this procedure. Please always use a lint-free cloth and do not rub.