Determination of the focal mechanism of microseismic (MS) events occurring in rock engineering plays an important role in hazard evaluation and forecasting. A complete moment tensor inversion strategy is proposed to analyse MS events recorded at the left bank slope of the Baihetan hydropower station, southwest of China. A coordinate system rotation procedure is adopted to construct a reliable 1-D velocity model for the Green’s function calculation. The layered velocities are accurately determined by inversion using the recorded blasts and geological survey results. To reduce the influence of noise contamination, only the waveforms in the frequency range of 60–150 Hz are analysed. Before moment tensor inversion, a relocation procedure using an eikonal solver is performed to accurately locate seismic sources. A robust global optimization routine is applied to maximize the objective function, thereby determining the focal mechanism. The proposed method is tested using a hypothetical seismic source in the sensor network used for monitoring MS events in the rock slope. The synthetic test shows that the method is robust and can provide accurate solutions when subject to location error, noise contamination and velocity model disturbances. The analysis results of the 12 MS events show that the moment tensors characterizing MS events present significant non-double-couple components and that the majority of the MS events have a strike orientation in accordance with that of the main staggered zones.