Carpet cleaning is a process that removes dirt or stains from your carpet. Carpet cleaning machines usually work on heated water or steam. Carpet cleaning might also involve the spraying of a protective barrier that is designed to repel dirt or soils in the future.