With the scale of the power grid is becoming larger and larger. The corresponding operation and maintenance work of the distribution network is becoming increasingly intelligent, which also puts forward corresponding requirements for the reliability of safe and stable operation of the power grid. The condition assessment of relay protection applies the scientific concept of condition-based maintenance to the actual work site, which is of great significance. To judge the operation status of the equipment and provide a scientific basis for maintenance, in this paper, based on the application of digital twin technology in microgrid operation and maintenance, the method of calculating reliability probability density by function is applied to solve the problems of fuzziness, gray, and randomness of the relay protection status index. The invention can evaluate the state of the relay protection of the power system and can timely and accurately put forward the corresponding relay protection inspection and maintenance scheme, thereby improving the maintenance efficiency of the relay protection and further strengthening the power supply reliability of the power system. It can ensure the security and stability of the power system and reduce the reliable power consumption of the majority of power users.