This study presents a new method for the rapid preparation of a superhydrophilic/underwater superoleophobic Mg(OH)2/ZnO coated mesh. Through one-step electrodeposition, a high underwater oil contact angle of 168.54° was achieved on the coated mesh. The electrodeposition process involved the deposition of ZnO nanoparticles on the cathode due to the presence of Mg2+ in the electroplating solution, while Mg(OH)2 was simultaneously formed on the surface of the cathode copper mesh. The cathode surface, where hydrogen is generated, leads to the formation of micropores and nanosheets on the Mg(OH)2/ZnO coated mesh structure. This structural feature traps more water molecules, further enhancing the superhydrophilicity of the coated mesh. The oil/water separation efficiencies for p-xylene, kerosene, paraffin liquid, and mineral oil were 99.8 %, 99.3 %, 99.5 %, and 99.4 %, respectively. The separation efficiency remained higher than 99.2 % even after conducting 350 p-xylene/water separation experiments. Additionally, the coated mesh displayed a strong oil/water separation ability after being immersed in alkali and salt solutions (pH = 7, 9) for 10 h. The coated mesh exhibited an enhanced water flux of (2.99 ± 0.20) × 105 L·m−2·h−1, along with a heightened invasion pressure (>2.8 kPa) and excellent oil-resistance performance. Overall, the Mg(OH)2/ZnO coated mesh developed in this study shows promising potential as a membrane for fast and efficient oil/water separation, with outstanding durability.