The working principle of a washing machine is centrifugation.
Centrifugation is a separation process that uses the action of centrifugal force to promote accelerated settling of particles in a solid-liquid mixture.
The washing machine consists of a centrifuge for this purpose.
If the axis of rotation passes through the coordinate system's origin, the centrifugal force is directed radially outwards from that axis.
A centrifuge is a piece of equipment that puts an object in rotation around a fixed axis, applying a force perpendicular to the axis of spin that can be very strong.
A washing machine by spinning at 800-1600 rpm helps soap and dirt with it to leave the surface of the cloth via centrifugal force and into outlet pipes hence utilizing centrifugation to both clean and partially dry the clothes loaded in it.