The invention relates to an ultraviolet mosquito-killing lamp with an electric shock protection function. The ultraviolet mosquito-killing lamp includes a shell, a power line, and an ultraviolet lamp circuit, a high-voltage switching circuit, a high-voltage net and a switch gear which are located in the shell, wherein the ultraviolet lamp circuit is connected with the high-voltage switching circuit, and the high-voltage switching circuit is connected with the high-voltage net the switch gear is a double-pole switch, and the double-pole switch is electrically connected with the power line. When the ultraviolet mosquito-killing lamp is powered off, both the live wire and the neutral wire are cut off, and thus the electric shock risk caused by the possibility that the live wire is not cut off when a single-pole switch is turned off is avoided.