If you've never experienced flooding in your home, consider yourself lucky. But if you own a house for a long time that has carpet in it, you've probably had to deal with the problem of carpet water defacement.
It could've been drenched by some water leaks or floods. A moistened carpet is an annoyance that leaves dirty spots on your carpet. But that's not the main problem. There are other big problems involved with not getting it taken care of in a timely manner.
When the carpet gets wet, the water usually runs straight down to the padding. The padding is beneath the carpet, and the water gets accumulated there. The padding holds on to the water like a sponge. If it's not seared out and taken care of quickly, a problematic condition can develop.
Fungi/Bacteria and Mold
Fungi/Bacteria might start to grow underneath or on top of a wet carpet. This can cause many kinds of problems including allergies, rashes, coughing, and other breathing problems.
Based on how bad the damage is, you might have to clean/change the carpet. The best thing to do is to call a water damage specialist. They're trained to deal with wet carpets, bacteria, and mold. A professional can analyze if you have a hazardous situation in your home. If mold has developed, then there isn't much you can do to get rid of it without taking the carpet out and cleaning it thoroughly.