Coal pores are sealed as a result of water lock effect, which in turn inhibits coalbed methane (CBM) from desorbing and diffusing. It seriously restricts the efficient development of CBM in the complex geological environment. Relieving pore water lock (RPWL) in coal reservoirs is a scientific problem that puzzles CBM development. Currently, the widely-interested technology of enhancing coalbed methane recovery (ECBM) can not effectively break through the pore water lock. Ultrasonic cavitation can generate shaped charge micro-jets, high temperature, and high pressure, which may be a potential strategy to realize RPWL in coal reservoirs. It has been maturely applied in numerous fields such as medicine, chemical industry, and manufacturing industry. Therefore, water-based ultrasonic cavitation-enhanced coalbed methane recovery (WUC-ECBM) was proposed in this study. This technology has enormous application potential for the efficient and green development of CBM. However, as the theoretical key to the successful application of WUC-ECBM, its RPWL mechanism is still blank. In this paper, X-ray nondestructive testing and fluid invasion methods were used to reconstruct the digital model of coal pore microstructure. Through ultrasonic cavitation numerical simulation, the dynamic behavior mechanism of water-based ultrasonic cavitation was studied in coal pore systems, revealing the microscopic RPWL mechanism of WUC-ECBM. Results show that low metamorphic coal has a larger and fuller pore system, which reflects a stronger topological advantage. Small pores and throats are the main locations of ultrasonic cavitation. This spatial feature is consistent with pore water locking phenomenon. During the formation of a cavitation bubble, ultrasonic energy instantly weakens the surface tension of the water film and activates RPWL. When the cavitation bubble collapses, the micro-jets, high temperature, and high pressure wreak mechanical damage and thermal shock to pore water, accelerating the RPWL process. Ultrasonic frequency affects the cavitation threshold. Increasing ultrasonic power will significantly boost cavitation intensity in pores, particularly in high metamorphic coal. The research results contribute to the green, efficient and intelligent development of CBM in the harsh geological environment, and provide theoretical guidance for WUC-ECBM.