The invention discloses a computer hardware dustproof and moistureproof inserting groove which comprises an inserting groove body, a pair of metal connecting pieces, a pair of springs, a pair of flexible cushions, a pair of sealing covers and a hardware board. The inserting groove body is of a U-shaped hollow structure, a pair of sliding groove covers are arranged at the top of the slot body, the hardware board is vertically inserted between the sliding groove covers, a horizontal sliding groove is formed in the top of each sliding groove cover, the metal connecting pieces are arranged in the inserting groove body respectively, the springs are connected with the metal connecting pieces and the inner wall of the inserting groove body respectively, the flexible cushions are correspondingly arranged below the metal connecting pieces respectively, the sealing covers are correspondingly arranged on the horizontal sliding grooves of the sliding groove covers and slidably contact with the horizontal sliding grooves, a shackle convex block is arranged at the inner-side end of each sealing cover, and a lock hole is formed in the inner-side end of each sliding groove cover. The computer hardware dustproof and moistureproof inserting groove enables the hardware board to contact with the metal connecting pieces well, so that the hardware board and the metal connecting pieces are free of loosening during vibration; the inserting groove body is isolated from the outside, thereby being good in dustproof and moistureproof effect.