Steam cleaning is generally considered the most effective method of carpet cleaning, as it can remove deep-seated dirt and stains that other methods may miss.