The invention relates to the technical field of direct-current power supplies, in particular to a high-voltage direct-current power supply which comprises a cabinet body. A cabinet door is rotationally connected to one side of the outer surface of the front end of the cabinet body, a direct-current power supply is fixedly installed at the upper end of the inner wall of the cabinet body, and a fixed base is fixedly connected to the position, close to the lower end, of the outer surface of one side of the direct-current power supply. A sealing plate is fixedly connected to the position, close to the fixing base, of the outer surface of one side of the direct-current power source, a fixing block is fixedly connected to the position, close to the lower end, of the outer surface of one end of the fixing base, and a plurality of grooves are evenly formed in the outer surface of the upper end of the fixing base. According to the invention, a wiring part is covered by an anti-loosening cover, so that the problem of upward movement of a square nut is avoided, and a wire at the power supply wiring part is stabilized; in addition, the anti-loosening cover can also prevent dust from falling at the wiring part, so that the problem of pollution flashover at the contact part is avoided; and meanwhile, the problem of electric spark of the wire at the wiring part is also avoided, and thus, the problem of fire disasters is avoided.