This article conducts numerical simulation research on the instability problem of dangerous rock masses in Zhayeba Temple based on Rockfall software. Firstly, a three-dimensional geological model is constructed through unmanned aerial vehicle oblique photogrammetry. Secondly, Rockfall is used for kinematic simulation of the unstable rock mass to analyze its motion characteristics. Based on the simulation results, two typical Areas are divided for secondary simulation. The results indicate that the movement of falling rocks in region 1 is a rolling collapse, with a bouncing height of 0 meters and a maximum kinetic energy of 52.55 Kj. Most of the falling rocks in Area 2 are jumping collapses, with the highest probability of bouncing at a height of 1.19 meters and the highest probability of kinetic energy around 101.72-183.10 Kj. Due to the impact of the collapse that has occurred in the upper part, some falling rocks have an energy of 712.05 Kj and a bouncing height of 25 meters. Although the impact force of falling rocks in Area 1 is relatively small, as the rolling distance increases, the threat to Area 2 is much greater than the impact on BT2. This study provides a reference for the development of targeted governance measures and is of great significance for disaster prevention and reduction engineering.