A brake control method for a variable-frequency motor of a washing machine, and a washing machine are provided. The washing machine includes a computer controller, a variable-frequency board and a motor, wherein after high-speed dewatering of the washing machine, a CPU on the computer controller transmits a brake command to the variable-frequency board, and after receiving the brake command, a CPU on the variable-frequency board drives the motor to operate. The brake control method includes: after high-speed dewatering of the washing machine, controlling a motor rotating speed to gradually decrease with decelerations in hierarchical increments, so that the motor can decelerate smoothly after high-speed dewatering of the washing machine, thus ensuring the motor brakes in specified time, and also avoiding generating a large noise.