Detergent is combined with water inside a washing machine to clean clothes.