A wall mounted washing machine and a door opening and closing device thereof are provided to maximize the user's convenience in opening and closing a door. The wall mounted washing machine includes a cabinet having a front surface and a rear surface to be opened to form an appearance, a tub disposed in the cabinet to store wash water; a front panel installed in the tub, a drum rotatably installed in the tub; a cover installed in the front panel and having a door hinge, a door rotatably coupled to the door hinge and having a door glass, and a door opening and closing device having an electronic opening and closing type for locking or unlocking the door.