Disclosed herein is a washing machine including a main body having a washing space and an opening through which clothes are inserted and withdrawn into and from the washing space, a door to open and close the opening, and a sub-washing unit to form a sub-washing space separate from the washing space and separably provided from the door. By such configuration, sub-washing may be efficiently performed, and space utilization may be improved.