The micro- and nanoelectromechanical system (MEMS and NEMS) devices based on two-dimensional (2D) materials reveal novel functionalities and higher sensitivity compared to their silicon-base counterparts. Unique properties of 2D materials boost the demand for 2D material-based nanoelectromechanical devices and sensing. During the last decades, using suspended 2D membranes integrated with MEMS and NEMS emerged high-performance sensitivities in mass and gas sensors, accelerometers, pressure sensors, and microphones. Actively sensing minute changes in the surrounding environment is provided by means of MEMS/NEMS sensors, such as sensing in passive modes of small changes in momentum, temperature, and strain. In this review, we discuss the materials preparation methods, electronic, optical, and mechanical properties of 2D materials used in NEMS and MEMS devices, fabrication routes besides device operation principles.