Permanent stains on wall-to-wall carpets and rugs are the result of dirt caused by stains or spills that, for a variety of reasons, have become permanent. They cannot be completely eliminated by professional or DIY means. The carpets are made of fibers twisted together. Just like the wick of a candle absorbs wax, carpet fibers act like wicks to absorb liquids and carry them to the ends.
Dark liquids such as juice or wine can change the color of textiles and behave like a dye by replacing the lighter color with a darker one. In some cases, the liquid can cause a chemical change in the fibers. Without quick action, the ends of the fibers dry out with the contaminant inside, preparing the ground for a permanent stain. When water-soluble stains are protein-based, heat or acid can darken them, increasing the chances that turn into spots.
Rather than trying to remove a stain yourself, it's a good decision to contact a trusted professional carpet cleaning service that knows how to remove stains safely. An effective treatment for one type of stain may not affect or, worse, have a detrimental effect on other types of spots. Carpet stains caused by spills and accidents are just part of life, but most people expect them to at least stay away if they are apparently cleaned successfully. Always make sure to dry on your own and never rub the area, as this can cause the stain to penetrate the fibers instead of removing it.
It is also essential to know the type of materials the carpet is made of so that attempts to remove stains do not cause further damage.