The invention discloses an intelligent switch with an accidental touch prevention function, which comprises a switch body, each of two vertical sides of the switch body is fixedly connected with a connecting strip, one side, close to a touch end of the switch body, of each connecting strip extends outwards, a first strip-shaped groove is vertically formed in one side, close to one side of the other connecting strip, of the extension end of each connecting strip, the upper ends and the lower ends of the two first strip-shaped grooves are each provided with a connecting shaft in a horizontal rotating mode, the two connecting shafts are each provided with a sleeve in a rotating sleeving mode, the positions, close to the two connecting shafts, in the two first strip-shaped grooves are each provided with a sliding shaft in a sliding mode, the two sleeves and the two sleeve columns are each fixedly connected with a folding cover plate, and one side of one connecting strip is vertically adhered to a connecting box. Different from a traditional exposed intelligent switch, the intelligent switch has the function of preventing mistaken touch and has the dustproof effect, a protection mechanism does not need to be unfolded outwards to increase the occupied space, the switch body can be installed at any position without being limited during installation, after operation, the switch is automatically and slowly closed, and the design is reasonable.