Cavitation bubble pulsation and liquid jet loads are the main causes of hydraulic machinery erosion. Methods to weaken the load influences have always been hot topics of related research. In this work, a method of attaching a viscous layer to a rigid wall is investigated in order to reduce cavitation pulsations and liquid jet loads, using both numerical simulations and experiments. A multiphase flow model incorporating viscous effects has been developed using the Eulerian finite element method (EFEM), and experimental methods of a laser-induced bubble near the viscous layer attached on a rigid wall have been carefully designed. The effects of the initial bubble–wall distance, the thickness of the viscous layer, and the viscosity on bubble pulsation, migration and wall pressure load are investigated. The results show that the bubble migration distance, the normalised thickness of the oil layer and the wall load generally decrease with the initial bubble–wall distance or the oil-layer parameters. Quantitative analysis reveals that when the initial bubble–wall distance remains unchanged, there exists a demarcation line for the comparison of the bubble period and the reference period (the bubble period without viscous layer under the same initial bubble–wall distance), and a logarithmic relationship is observed that
$\delta \propto \log_{10} \mu ^*$, where
$\delta =h/R_{max}$ is the thickness of the viscous layer h normalised by the maximum bubble radius
$R_{max}$,
$\mu ^* = \mu /({R_{max }}\sqrt {{\rho }{{\mathop {P}\nolimits } _{{atm}}}})$ is the dynamic viscosity
$\mu$ normalised by water density
$ \rho $ and atmospheric pressure
$P_{atm}$. The results of this paper can provide technical support for related studies of hydraulic cavitation erosion.