A washing machine and a method for controlling the same are provided. The washing machine includes a cabinet having a door on a front thereof, a tub in the cabinet that holds washing water, a drum rotatably mounted in the tub, a gasket mounted to connect openings of the door and the tub, and a lamp device having light emitting devices (LEDs) mounted on the gasket providing light an inside the washing machine. The method for controlling the washing machine includes turning on the LEDs providing light to the inside of the washing machine upon receiving an order of turning on a lighting through an LED input device, and turning off the LEDs upon receiving an order of turning off the lighting through the LED input device after the turning on the LEDs.