The invention relates to a disinfection device and a disinfection cabinet with same. The disinfection device comprises an ultrasonic lamp tube, a surface plate, a screw rod, a gear, a driving part anda rack. As the ultrasonic lamp tube is arranged on the surface plate in a moving manner through the screw rod, the gear, the driving part and the rack, when the disinfection cabinet with the disinfection device provided by the invention is used, the screw rod is driven by the driving part to rotate, then the gear is driven to move in a length direction of the screw rod, furthermore the ultrasoniclamp tube on the gear is moved in a translation manner within a certain range on the surface plate, meanwhile, the gear is driven by the rack meshed with the gear to revolute in the translation process, that is, the ultrasonic lamp tube of the disinfection device has composite movement of translation and rotation, then ultraviolet rays are uniformly distributed in the disinfection cabinet, and the disinfection effect can be improved; in addition, as the ultraviolet rays are uniformly distributed in different positions of the disinfection cabinet, components to be disinfected can be effectively disinfected even when being placed at corners of the disinfection cabinet, and the space inside the disinfection cabinet is sufficiently utilized.