The best thing you can do to maintain your carpets and keep them in the best shape possible is with regular and proper vacuuming. Frequency and consistency are important to keep carpet fibers from crushing and dirt from settling deep into fibers. Make sure to vacuum in overlapping rows and go slow enough for the machine to have enough time for good suction power.
Spot cleaning right when stains, spills, and accidents happen is vital to keeping your carpets spot-free. Remember to always gently blot when cleaning a spot and never rub.