A dishwasher is a machine that automatically cleans dishes, utensils, and cookware with water and detergent.