Dishwasher clean dishes with a combination of mechanical, thermal, and chemical reactions. The water jet creates mechanical force, the heating element generates heat, and detergent does a chemical reaction with the dirt to clean it. This is the basic principle.