A method for controlling a washing machine, of the present invention, comprises the steps of: (a) treating laundry with water supplied together with a detergent; (b) draining the water used in step (a), rotating an inner tub at high speed, and operating a pump so as to drain the water discharged from the laundry; (c) rotating the inner tub at a first speed, and supplying the water into the inner tub by passing the same through a dispenser; (d) stopping the supply of water through the dispenser, rotating the inner tub at a second speed, and supplying water into the inner tub through a spray nozzle; (e) stopping the supply of water through the spray nozzle, and alternately rotating a pulsator at a third speed in both directions; (f) stopping the rotation of the pulsator, rotating the inner tub for a preset time at the second speed, and supplying water into the inner tub through the spray nozzle; (g) decelerating the inner tub from the second speed to a fourth speed, and draining an outer tub by operating the pu