Disclosed herein is a washing machine, which includes a cabinet having a first opening and a washing space therein and a door assembly configured to open or close the first opening. The door assembly includes a door unit including a guide duct having one side forming a second opening and the other side connected to the washing space, and configured to be rotatable with respect to the cabinet, a sub-door configured to open or close the second opening and a sealing assembly configured to seal the other side of the guide duct. With this configuration, it is possible to effectively seal the inside of the washing machine.